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 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
   Displaying page 1 of 1 pages; Items 1 to 1

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