Regular Expressions 101

Community Patterns

C++ operator overload

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