Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
({\n\s*)(?:[^}{]*)(\n\s*{)
/
gim

Description

REMOVE INSIDE STRING OF BRACKET EXCEPT BRACKET INSIDE OF IT

Submitted by Momar - 8 years ago