Regular Expressions 101

Community Patterns

Community Library Entry

4

Regular Expression
PCRE (PHP <7.3)

/
(\w+=[\w]{0})(?:&|$)
/
g

Description

looks for blank keys in the query string and remove it, in order to make shorter request.

Submitted by M.Nizam - 8 years ago