Regular Expressions 101

Community Patterns

starts with abc, has 123 and ends with xyz

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