I using the following regex to match valid disk drive for both win and *nix OS.
"(([:alpha:]:(\([\|\/|:|*|\"|<|>||]+)?)?)|(\/.+))"
The regex passes for empty strings. What I am trying to do is match at least the following
c:
c:\
c:\dirname
/a
/dev/hda
Any ideas?
Thanks in advance