Regular Expressions 101

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
operator\s*(\+|\-|\*|\/|\%||\&|\||\~|\!|\=|\<|\>|\(\s*\)|\[\s*\]|new|delete)
/

Description

"Lazy" operator overload regular expression: += and likes are left out because + and like matches anyway.

Submitted by Guba Dániel Olivér - 9 years ago