Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(.*?)@(.*$)
/
gm

Description

This little regex is taking an email and creating 2 group first is for before the @ sign and the second is for after the @ sign

Submitted by anonymous - 4 years ago