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

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