Regular Expressions 101

Community Patterns

SQL placeholder match

1

Regular Expression
PCRE (PHP <7.3)

/
\? # match the literal characters 'text' (?= # start lookahead [^"']* # match any number of non-quote characters (?: # start non-capturing group, repeated zero or more times ("|')[^\1]*\1 # one quoted portion of text [^"']* # any number of non-quote characters )* # end non-capturing group $ # match end of the string ) # end lookahead
/
gmix

Description

no description available

Submitted by Andy Chentsov - 8 years ago