Community Patterns

Community Library Entry

1

Regular Expression
Created·2024-02-26 00:10
Flavor·PCRE2 (PHP)

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

Description

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

Submitted by Redu