Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
\/(?:\\.|[^\\\/])+\/(?!.*(.).*\1)[gimuy]{0,5}
/
gm

Description

Matches regular expressions in JS/TS (EcmaScript) code including none or one of the flags g, i``, m, u, y.

Submitted by Redu - 8 months ago