guys help me please with it. I don't know how to operate with regex, I read a lot about this, but anyway, I don't understand how it works.
This is my problem: I have code like this:
var str = "<strong>What do you think</strong> if we could just buy this <strong>Robot</strong>";
str = str.match(/[<strong>][a-z\s]+[<\/strong>]/gi);
And after code is done, I get something like this: >What do you think<,>Robot<
But I waited for this: What do you think, Robot.
What's wrong? It drives me crazy.
UPDATE: Thanks to all of you!!! Now, solution is found