Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Matching a filename
- Fran Garcia
February 25, 2005, 1:57 pm
rate this thread
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))
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!!
- Tim Van Wassenhove
February 25, 2005, 10:16 pm
- » Zend Development and erroneous Assignment Condition bugs
- — Previous thread in » PHP Scripting Forum