Regular Expressions 101

Community Patterns

Find = without surrounding spaces

0

Regular Expression
PCRE (PHP <7.3)

/
(?<![\s=])(=)(?![\s=])
/
g

Description

It searches for single occurrences of = without surrounding spaces (== are excluded).

Submitted by anonymous - 7 years ago