Regular Expressions 101

Community Patterns

Simple @user replacement

2

Regular Expression
PCRE (PHP <7.3)

/
((?:(?<=\s)|)@(\w+))
/
gi

Description

no description available

Submitted by anonymous - 9 years ago