Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(?<!\S)\$?gme\b
/
gm
Input 1
New
hello $gmee hello g$gme So for example in a string such as Hello gme. Hey $gme. Hey $gmee. Hey gmee. It should find only gme or $gme from the above string. It must also find gme or $gme when there is no space before or after a string For example $gme gme So in a string like Hello gme. Hey $gme. Hey $gmee. Hey gmee. Its mentioned only two times.