Regular Expressions 101

Community Patterns

Parenthesis Non-Breaking Spaces

1

Regular Expression
PCRE (PHP <7.3)

/
(?<=|||)\s(?!\w)
/
g

Description

Find spaces between parenthesis and replace them with non-breaking spaces

Submitted by Aartro - 8 years ago