in reply to Call for code samples!
I felt at the time this was a bit ugly, and should certainly have been doable in one regex, but didn't work out how - that's something I'd like to be able to do with a regex, though I agree it's not all that sophisticated.$file =~ s/^.*$startstring/$startstring/s; $file =~ s/$endstring.*$//s; $file =~ s/<[^>]*>/ /g;
|
|---|