Regular Expressions 101

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
\b(?:you|u) only live once\b
/
gmi

Description

Substitutes "you only live once" with "YOLO".

Submitted by anonymous - 10 years ago