I wanna match the incorrect filename with the next regular expression
but it doesn´t work. Why? I don´t know.
if (ereg("[^A-Za-z0-9\.]+", $str))
return false;
else
return true;
I wanna allow only letters (A-Za-z) and numbers (0-9) and of course a
dot for the extension.
Have anybody any suggestion or idea? Any idea would be appreciated!!
Fran García
but it doesn´t work. Why? I don´t know.
if (ereg("[^A-Za-z0-9\.]+", $str))
return false;
else
return true;
I wanna allow only letters (A-Za-z) and numbers (0-9) and of course a
dot for the extension.
Have anybody any suggestion or idea? Any idea would be appreciated!!
Fran García
Comment