Regular Expressions 101

Community Patterns

Match Hashtags

1

Regular Expression
PCRE (PHP <7.3)

/
(#[\pL_0-9]+)
/
g

Description

Matches hashtags withing string

Submitted by Melik Karapetyan - 8 years ago