Community Patterns

Community Library Entry

0

Regular Expression
Created·2017-05-17 15:26
Flavor·PCRE (Legacy)

/
\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
Open regex in editor

Description

Search string which allows wildcard (*) at beginning and or end, but not in between. Search string itself allows almost any character but *

Submitted by Tom42