Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(?<text>.*)(?<newline>[\r\n]+)
/
gm

Description

New line characters on Windows, Linux and OSX

Submitted by anonymous - 3 years ago