Regular Expressions 101

Community Patterns

parse username with @ mention

2

Regular Expression
PCRE (PHP <7.3)

/
(?<=^|\s)(@[\w.]+)(?<!\.)
/
gi

Description

no description available

Submitted by Laracasts - 8 years ago