44
rated 0 times
[
45]
[
1]
/ answers: 1 / hits: 29758
/ 10 Years ago, sat, january 24, 2015, 12:00:00
I want to find a specific pattern inside a string.
The pattern: ({$.+$})
Example matche: {$ test $}
The problem I have is when the text has 2 matches on the same line. It returns one match. Example: this is a {$ test $} content {$ another test $}
This returns 1 match: {$ test $} content {$ another test $}
It should returns 2 matches:
{$ test $}
and {$ another test $}
Note: I'm using Javascript
More From » regex