Why not use the Uri object to parse the URL for you, and go from there? ∞ Andy Badera ∞ +1 518-641-1280 ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=andrew%20badera
On Mon, Oct 5, 2009 at 11:45 AM, C. <[email protected]> wrote: > > Hi all, > > I need to capture all the folders in a URL with a regex, but I can't > get the pattern. > > I've tried @"(http://[^/])?/(?<folders>[^/]*)/([^/]*)\.[^/]*", but it > doesn't work. What pattern can I use to return a capture group that I > can iterate through and extract all the directories within a URL? > > Regards, > > Chris >
