Regular Expressions 101

Community Patterns

Search string with simple * wildcarding at beginning and end allowed

0

Regular Expression
PCRE (PHP <7.3)

/
\A(?# String begin)([\*])?(?# Optional * at begin)([[:word:][:blank:][!"#$%£¥#%@€&'()+,\-.\/:;<=>?@[\]^_`{|}~§üäöÜÄÖ]]*)(?# match characters allowed as search string - no * in here!){3,}?(?# at least 3 characters, non greedy)([\*])?(?# optional * at end)\Z(?# end of string)
/
g

Description

Loading markdown...
Submitted by Tom42 - 6 years ago