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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Windows path
Expression
^((?:(?:[a-zA-Z]:)|\\)\\)?((?:\.\.?\\)|(?:[^\0-\31<>:"/\\|?*]+(?<![ .])\\))*([^\0-\31<>:"/\\|?*]+(?<![ .]))?$
Description
I've come to this expression according with (most of) the naming conventions provided by MS in this page: http://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx#naming_conventions Any corrections or comments will be much appreciated NOTE: thanks to Ultrapico for freely distributing Expresso (http://www.ultrapico.com/Expresso.htm)
Matches
C:\Program files\Ultrapico\Expresso\ | C:\Program files\Ultrapico\Expresso\Expresso.exe | \\myserver\myfolder | \\myserver\myfolder\ | \\myserver\.myfolder | \\myserver\myfolder\myfile.txt | ..\here\..\here\..\here\.\this.txt
Non-Matches
C:\Program files\Ultrapico\Expresso.\ | \\myserver\myfolder. | do_not_end_names_with_SPACE
Author Rating: Not yet rated. flyontheweb
Source
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-2024, RegexAdvice.com | ASP.NET Tutorials