RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details File Name
Expression
^([a-zA-Z]:\\)?[^\x00-\x1F"<>\|:\*\?/]+\.[a-zA-Z]{3,4}$
Description
This matches a valid windows filename. Not a valid path.I wanted something simple that covered all the bases
Matches
file.txt | fie.txt.pdf | file(with parenthesis).pdf
Non-Matches
*file.pdf | file.tx
Author Rating: The rating for this expression. Jose Paulino
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials