flann
Regular Member
- Jan 19, 2008
- 208
- 34
I have this (in a RichTextBox):
I need this (i need to remove all crap after 1st directory/folder):
Or maybe someone can tell me how to extract all links on a page with specific classname?
example: <a href="ExtractThisCrap" title="Random Crap" class="ExtractMe"> (i need the ExtractThisCrap
i don't get it, maybe it is not working for me because the class is behind the crap/URL i need)
Code:
http://www.site.com/folder1/folder2/
http://www.site.com/folder1/folder2/234/
http://www.site.com/folder2/folder2/sagdg
http://www.site.com/folder2/folder4/fdgdf
I need this (i need to remove all crap after 1st directory/folder):
Code:
http://www.site.com/folder1/
http://www.site.com/folder2/
Or maybe someone can tell me how to extract all links on a page with specific classname?
example: <a href="ExtractThisCrap" title="Random Crap" class="ExtractMe"> (i need the ExtractThisCrap
Last edited: