Regular Expressions 101

Community Patterns

Remove \r\n & \"

0

Regular Expression
PCRE (PHP <7.3)

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

Description

JSON object string \r\n & " replace regex

Submitted by Jerad Rutnam - 8 years ago