Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-03-06 15:00
Flavor·PCRE (Legacy)

/
(?<=than\s)better(?=\sabsolutely)
/
g
Open regex in editor

Description

Look ahead Positive(?=)

Find expression A where expression B follows

A(?=B)

Look behind Positive(?<=)

Find expression A where expression B precedes

(?<=B)A

Submitted by anonymous