On Tue, 15 Feb 2005 15:51:55 +0000, "Brett Parker" iDunno@sommitrealweird.co.uk said:
Richard Lewis richardlewis@fastmail.co.uk wrote:
Richard Lewis wrote:
iDunno@sommitrealweird.co.uk said:
Hows about forgetting the regexp and using the right tool for the job?
Oh, yes. I should have said: I was only using sed to work out the regex, I need it for an XSLT transformation so unfortunately I don't have the luxury of neat little UNIX tools :-(
Ahh, there must be a neater way to do it than that in XSLT. With a quick google I get to: http://sources.redhat.com/ml/xsl-list/2001-12/msg00651.html
Yes, there may be. But ATM it looks like regular expressions (as long as you're using XSLT2) are winning ;-)
R.