Regular Expressions 101

Community Patterns

Find all words between #text#

1

Regular Expression
PCRE2 (PHP >=7.3)

~
[^<>](?![^<]*>|[^<>]*<\/)(?!\s\#\s)(\#\S[^<>](?![^<]*>|[^<>]*<\/)(.*?)\S\#)
~
mUg

Description

Loading markdown...
Submitted by Kervan Mazuy - 5 months ago