<?php
$test=\"aB1.^*@!?_-\";
if(ereg(\"^[a-zA-Z0-9*@!?_^.-]+$\",$test)) { echo \"zgadza sie\"; }
?>
Cytat("eregi")
This function is identical to ereg() except that this ignores case distinction when matching alphabetic characters.
więc wystarczy pominąć A-Z ...
Cytat
Notatka: preg_match(), which uses a Perl-compatible regular expression syntax, is often a faster alternative to ereg().
więc jak chcesz to zamień sobie to na preg_match ...