(or|and|(?:(?P<case1namE>)\() ?|) ?\w*(\.)?colz( like| ?\=) ?\?(?:(?P=case1namE) OR)?( and)?
in this case if
(
is found before the expression then
OR
will be captured at the end of the expression(if found) IMPORTANT: group name is case sensitive //see code for real example
by გიორგი უზნაძე
4 years ago
PHP
Regexp
1
Pro tip: use ```triple backticks around text``` to write in code fences