Thread "unscharfe" Suche in DB (8 answers)
Opened by Gast at 2004-05-25 10:42

tobiAS
 2004-05-25 17:48
#32181 #32181
User since
2004-05-25
3 Artikel
BenutzerIn
[default_avatar]
Aus dem Kochbuch Rezept 6.18 (bzw. 6.17 der ersten Auflage):

True if either /ALPHA/ or /BETA/ matches, like /ALPHA/ || /BETA/:

/ALPHA|BETA/

True if both /ALPHA/ and /BETA/ match, but may overlap, meaning "BETALPHA" should be okay, like /ALPHA/ && /BETA/:

/^(?=.*ALPHA)(?=.*BETA)/s

True if both /ALPHA/ and /BETA/ match, but may not overlap, meaning that "BETALPHA" should fail:

/ALPHA.*BETA|BETA.*ALPHA/s

True if pattern /PAT/ does not match, like $var !~ /PAT/:

/^(?:(?!PAT).)*$/s

True if pattern BAD does not match, but pattern GOOD does:

/(?=^(?:(?!BAD).)*$)GOOD/s\n\n

<!--EDIT|tobiAS|1085493024-->

View full thread "unscharfe" Suche in DB