I want to select strings that are not in a $ ... $ group. I can choose the group itself, but it should be the other way around.
Example :
$ blah **deneme** blah $ xxx **bold** xxxxx $ blah **bold** blah $
First group is $ blah **deneme** blah $
Second group is $ blah **bold** blah $
I want to get this in regex **bold** so it must start with **, end with ** but cannot be a member of $...$ group
I wrote regex but what I needed would be to choose the opposite.
/(?:\$)(.*?)[\*\_]{2}([^\*\_]+)[\*\_]{2}(.*?)(?:\$)/gm