Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(?=^abc)(?=.*123)(?=.*xyz$)
/

Description

#starts with abc, has 123 and ends with xyz abc123xyz

Submitted by Kifah - 9 years ago