Moin,
preg_match("/\w*/",$var,$array)
Ich will, dass das Teil "true" ausgibt, sobald meine Var nur Buchstaben oder Zahlen enthält (und [- _]). Sobald ein Zeichen wie z.B."<" drinsteht soll es false ausgeben.
http://de3.php.net/manual/de/pcre.pattern.syntax.php#regexp.reference.circudollar
--
Henryk Plötz
Grüße aus Berlin
~~~~~~~~ Un-CDs, nein danke! http://www.heise.de/ct/cd-register/ ~~~~~~~~
~~ Help Microsoft fight software piracy: Give Linux to a friend today! ~~
Henryk Plötz
Grüße aus Berlin
~~~~~~~~ Un-CDs, nein danke! http://www.heise.de/ct/cd-register/ ~~~~~~~~
~~ Help Microsoft fight software piracy: Give Linux to a friend today! ~~