I am trying to use a reg ex which validates Windows path string. I am using the following reg ex
[\w]:\.* .
The following egs should be validated.
Abc.txt
HelloWorld\Abc.txt
..\Hello\World\Abc.txt
C:\Program Files\TaaSera\LiveTrust\Abc.txt
At present C:// is only getting validated. Please help.
:is metacharacter, it has to be escaped:forms part of various syntaxes (eg. not capturing groupd) it isn't a meta-character in its own right.. However there are also\\computer\share\…\name` and\\?\D:\very long pathto bypass the normal file length limits. See MSDN for details.