Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
[(\&&?)]?([^=]+)(==|!=|>=|<=)([^&#]+)(&&|\|\|)?
/
g

Description

This expression is used to parse strings like category.slug==smartphone&&request.user_id==12

Submitted by Phaeton - 9 years ago