Regular Expressions 101

Community Patterns

Remove unnecessary spaces after and before parentheses

1

Regular Expression
PCRE (PHP <7.3)

/
(?<=\()\s+|\s+(?=\))
/
g

Description

no description available

Submitted by Tenaz - 8 years ago