Regular Expressions 101

Community Patterns

Conditional

-1

Regular Expression
PCRE (PHP <7.3)

/
(:.+)(?(1)Cool!)
/
gm

Description

match String Cool! only if there is a : somewhere preciding it

Submitted by anonymous - 3 years ago