Regular Expressions 101

Community Patterns

Positive Lookahead box(?=-shadow)

0

Regular Expression
PCRE (PHP <7.3)

/
box(?=-shadow)
/
gm

Description

Simple positive Lookahead - Select 'box' only if what comes after is '-shadow' See this youtube https://youtu.be/aIEjh0YsxWA?t=228

Submitted by anonymous - 6 years ago