Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 273
  • Last Modified:

parse path in pcre help

Hello
I am using a pcre module to write a stored procedure to parse a path of the following typ
\\one\two sdkfjlk#94(@!! \therkj @'jf \four\five\isc jkj\seven  .... etc
and I want to just get the path to the fourth level i.e everything between \\....\...\...\..\ or less

I have been trying
(^\\(\\([\s+|\w+]*)){3})(.*$)
but this is fine with
\\one two\three\four\five\ it has problems with #'! etc characters and I don't know how to express ( any char except \\ in the expression)

thanks,
0
modish
Asked:
modish
1 Solution
 
ozoCommented:
(^\\(\\([^\\]*)){3})(.*$)
0
 
modishAuthor Commented:
Hmmm ,
Obvious :-)
Thanks Ozo.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now