I want to find a specific pattern inside a string.
Sample: (\{\$.+\$\})
Matche example:{$ test $}
The problem is that 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 return 2 matches:
{$ test $}and{$ another test $}
Note. I am using javascript
User1 source
share