Regular Expressions 101

Library entries

parse username with @ mention

Vote

2

Regular Expression
pcre

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

Description

Loading markdown...
Submitted by Laracasts - 5 years ago