Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?:\\[rn"\"]|[\r\n]+)+
/
g

Description

JSON object string \r\n & " replace regex

Submitted by Jerad Rutnam - 9 years ago