Reputation: 325
I need a regex to search a string for M?' not followed by , or )
I think I need a negative lookahead, but I can't seem to get it working:
M?'(?!,|\))
Any help would be greatly appreciated.
Thanks!
Upvotes: 1
Views: 360
Reputation: 8978
I believe ?
is part of search string so try following regex:
M\?'(?!,|\))
Upvotes: 1