Regular Expressions 101

Community Patterns

1...34567...879

Find all hashtags

1

Regular Expression
PCRE2 (PHP >=7.3)

Description

This regex finds all hashtag (begin by #) in a whole string

Submitted by Sébastien LHUILLIER - 4 months ago (Last modified 4 months ago)