Regular Expressions 101

Community Patterns

Regex for Mastodon user accounts

0

Regular Expression
PCRE2 (PHP >=7.3)

/
@?\b([A-Z0-9._%+-]+)@([A-Z0-9.-]+\.[A-Z]{2,})\b
/
gmi

Description

Submitted by anonymous - a year ago (Last modified 8 months ago)