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]\:|\\\\[^\/\\:*?"<>|]+\\[^\/\\:*?"<>|]+)(\\[^\/\\:*?"<>|]+)+(\.[^\/\\:*?"<>|]+)$
Description
This regular expression match any valid file path. It checks local drives and network path. The file extension is required.
Matches
c:\Test.txt | \\server\shared\Test.txt | \\server\shared\Test.t
Non-Matches
c:\Test | \\server\shared | \\server\shared\Test.?
Author Rating: Not yet rated. Roberto Misticoni
   Displaying page 1 of 1 pages; Items 1 to 1

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