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 Valid directory only path
Expression
([A-Z]:\\[^/:\*;\/\:\?<>\|]+)|(\\{2}[^/:\*;\/\:\?<>\|]+)
Description
This regex will validate whether the value is a valid directory path.
Matches
C:\ValidFolder C:\ValidFolder\SubFolder \\ValidShare \\ValidShare\Subfolder
Non-Matches
C:\Inval:idPath InvalidFolder\Subfolder D:\Invalid*Folder
Author Rating: The rating for this expression. Craig Prescott
   Displaying page 1 of 1 pages; Items 1 to 1

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