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
/
#\b.*?\b#|\B#\w+
/
g
Input 1
1
New
Case 1 : Hello, #how are you# today. In this case, I want to detect how are you. Now if there is only a word, then the above case is to be ignored. Case 2 : Hello, #how are you #today.