Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] RegEx for validating a file name


  • From: paul at novitskisoftware.com (Paul Novitski)
  • Subject: [Javascript] RegEx for validating a file name
  • Date: Thu May 19 12:35:01 2005

At 09:49 AM 5/19/2005, Hassan Schroeder wrote:
>..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.

Quite right -- one of my brain's feet must have been standing momentarily 
in MS-DOSville.

P.