Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2019-06-22 20:46
Flavor·PCRE (Legacy)

/
(?'postion'(?=.y)(?:\K.))
/
gm
Open regex in editor

Description

Add dots BEHIND the y to make the selection go backwards (the y can be anything you want) and add dots BEFORE the \K to make the selection go forwards. The dot after the \K is to make the selection a whole letter.

Submitted by anonymous