Regular Expressions 101

Community Patterns

Separator Regex

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(?:\/\/|(?:\[?([^\[\]^\\^n]+)]?)|\\n)
/
gm

Description

Separator regex

Submitted by anonymous - 3 years ago