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 2
Title Test Details Pattern Title
Expression
^([a-zA-Z]\:) (\\{1}| ((\\{1}) [^\\] ([^/:*?<>"|]*(?<![ ])))+)$
Description
Validates windows path and invalidates UNC path
Matches
c:\34\445\546\3.htm | C:\
Non-Matches
\\qaz | c:\Ram<\ | C: or c:\\ or \\
Author Rating: The rating for this expression. Gaurav Shrivastava
Title Test Details Pattern Title
Expression
^([a-zA-Z]\:)(\\{1}|((\\{1})[^\\/:*?<>"|]([^\\/:*?<>"|]*(?![ ])))+)$
Description
Matches
c:\ | c:\abc\def
Non-Matches
\\ | c:\\ | c:\abc\def\
Author Rating: Not yet rated. Gaurav Shrivastava
   Displaying page 1 of 1 pages; Items 1 to 2

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