RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Matches to file path.
Expression
^]:\\[^:\*\?"<>|\/\\]+(\.[^:\*\?"<>|\/\\]+|[^:\*\?"<>|\/]+[^:\*\?"<>|\/\\]+\.[^:\*\?"<>|\/\\]+)$
Description
The match return true if the test value is a valid path on windows.
Matches
C:\my-directory\my-file.ext | g:\file.txt
Non-Matches
:\my-directory\my-file.ext | c:\file\\.ext
Author Rating: Not yet rated. chayim fridman
Source I created.
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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