Harry: reguäre Ausdrücke & ASCI-Code

Beitrag lesen

Holladiewaldfee,

if( !ereg("\x00-\x21", $string0))
Ziel:
ASCI-CODE Abfrage \x00 bis \x21 hexadezimal
Ich hatte es auch schon mal mit den [..] KLammern versucht - errror.

Damit das \ im RegExp auch als solches ankommt mußt Du es im String selbst mit Escape-Zeichen versehen: \x00 ...

Ciao,

Harry

--
  Intelligenz ist nicht zwingend etwas positives.
  Man weiß erst, was man hatte, wenn man es verloren hat.