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
/
(?<![\p{L}0-9])([##][·・ー_0-90-9a-zA-Za-zA-Zぁ-んァ-ン一-龠]{1,24})(?![\p{L}0-9])
/
gu
Input 1
1
New
Hashtag must be started with # character. Hashtag will be detected by space character and other special characters (!,@,&,*,%,$). Example 1: Hello#guys. This is a #test. -> Valid hashtag: #test. Example 2: Hello#guys. This is a #test!#message. -> Valid hashtag: #test and #message Example 3: Hello#guys. This is a #test #message. -> Valid hashtag: #test and #message Example 4: Hello#guys. This is a #test#message. -> Valid hashtag: #test Example 5: #asdasdasdasdasdasdasdasdasd -> Valid hashtag: none Example 6: # -> Valid hashtag: none #日本語#asd => Valid hashtag should be #日本語 #日本語日本語日本語日本語日本語日本語日本語日本語日本語 => Will not a valid hashtag