Regular Expressions 101

Community Patterns

Regex Replace params by space when value is null

1

Regular Expression
PCRE (PHP <7.3)

/
[a-zA-z\-]+( )+?=( )+?(:id)( +)?and|and( +)?[a-zA-z\-]+( )+?=( )+?(:id)$|where( )+?[a-zA-z\-]+( )+?=( )+?(:id)
/
gmi

Description

no description available

Submitted by anonymous - 3 years ago