Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-02-23 22:02
Flavor·PCRE2 (PHP)

/
\\{2}(*SKIP)(?(R)|\\[^\\])|\\[^\\]
/
g
Open regex in editor

Description

Flavor: PCRE2

Finds escaped characters. No matter how many \ are present, it will always match either \. or . (where . is the character).

Submitted by Grayson Spidle