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 Pattern Title
Expression
^((([a-zA-Z]:)|(\\{2}\w+)|(\\{2}(?:(?:25[0-5]|2[0-4]\d|[01]\d\d|\d?\d)(?(?=\.?\d)\.)){4}))(\\(\w[\w ]*)))
Description
Regex to match valid folder paths. can be local, UNC with server name, or UNC with IP address
Matches
c:\ds\dsfsdf | \\192.168.14.118\23423 | \\fsdf\23423
Non-Matches
c:\ | \\192.168.12.114 | \\fff
Author Rating: The rating for this expression. John Conwell
   Displaying page 1 of 1 pages; Items 1 to 1

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