View Single Post
  #1   Report Post  
Posted to microsoft.public.scripting.vbscript,microsoft.public.excel.programming,microsoft.public.office.developer.automation
bv003 bv003 is offline
external usenet poster
 
Posts: 2
Default 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.