[Javascript] RegEx for validating a file name
Hassan Schroeder
hassan at webtuitive.com
Thu May 19 11:49:09 CDT 2005
Paul Novitski wrote:
> If the regexp validates file names generally and isn't dedicated to a
> specific application in which file names are constrained, wouldn't you
<snip/>
..just want to forget it altogether? :-)
Using Linux/MacOS/Windows,
"log4j.properties" is a valid filename
"Hassan_Schroeder.resume.pdf" is a valid filename
"Picture of the Dogs.jpeg" is a valid filename
..none of which would pass the proposed regex.
So presumably the application this is being intended for has some
substantial constraints, outside of what the OS supports...
FWIW,
--
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
dream. code.
More information about the Javascript
mailing list