RegExp to Parase File paths
Please help me identify the proper pattern to parse a path such that i
capture all the defined directories and file title. I would like to avoid the
slashes and the dot from being recorded.
Per se I have the path:
c:\data\pictures\instru.bmp
I would like the RegExp to return 4 items: c:,data,pictures,instru.
As a starting point I tried:(?:[\\])(^[\\])
This returns nothing. Can you please help me fix this? Also, please advise
how do I work the period into the pattern?
Thank you very much for your help.
|