Hi
I'm working in VS.net using C# and trying to learn regular expressions. I have a simple project (well seems simple) which I let the user upload from URL, now after then upload from the URL I also import or upload the stylesheet. I have everything except that I need to get the domain and every subfolder and attach the filename of the stylesheet at the end, here is my example of the outcome:
URL: http://www.domain.com/test.html or http://www.domain.com/subfolder/test.html
so the outcome i would like:
http://www.domain.com/ or http://www.domain.com/subfolders/
I have done some searching through the threads and found this expression:
(?<=://)[^/]+(?=/) but it only returns the domain and thats it.
Help? Thanks in advance