Simon simon@sparksy.org.uk wrote:
This is a typical example of the most irritating reply ....
At least he didn't just post "STFW", as I'm sure this sort of problem is dealt with in quite a few FAQs, including the sed one.
It's multiline, so I'd probably use a scripting language with regular expression support and find the multiline flags. perl, python and guile are installed on quite a few and I quite like the programmable richness of guile's regexp-substitute/global (I think that's the function), although its quoting rules trip me up, as it's not perl-like.
Then again, it looks like perl6's regexps may not be perl-like either...