I need to open a file and extract everything up to the third occurance of a certain string (like the html '/p' tag).
I've tried a bunch of differant ways, but they all have failed. I know this is simple to do but at the moment im just not in the frame of mind to come up with it :P.
Any help would be appreciated.