| Title |
Test
Find
Folder Path Validation (local + netowork) for windows
|
| Expression |
^(((\\\\([^\\/:\*\?"\|<>\. ]+))|([a-zA-Z]:\\))(([^\\/:\*\?"\|<>\. ]*)([\\]*))*)$ |
| Description |
I'm very new to reg exp
I've given a try ...
for C#
@"^(((\\\\([^\\/:\*\?""\|<>\. ]+))|([a-zA-Z]:\\))(([^\\/:\*\?""\|<>\. ]*)([\\]*))*)$"
It worked for me ...
Make neccessary changes as required |
| Matches |
C:\abc\xyz, c:\, \\server10\mnop |
| Non-Matches |
c:, \\server?abc , c:\abc|mno\abc\xyz |
| Author |
Rating:
Not yet rated.
P Mahender Reddy
|
| Source |
Share Knowledge ... |
| Your Rating |
|