Title |
Test
Find
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:
Gaurav Shrivastava
|
Source |
|
Your Rating |
|
Title: remember to take spaces out of expression
Name: ken
Date: 2/2/2006 10:41:25 AM
Comment:
The correct expression should be this:
^([a-zA-Z]\:)(\\{1}|((\\{1})[^\\]([^/:*?<>"|]*(?<![ ])))+)$
For some reason, the one that's on the page has extra spaces in it...