Am Montag 20 Juli 2009 22:05:05 schrieb Alan Munn:
> Perfect.  Thanks. I had tried that with my more complicated example
> (which included reference to capture groups from the regex) and it
> didn't work, but now I realise I need to concatenate the pieces together
> with a mix of single and double quotes to get it to work.

Well you could also use double quotes exclusively and use \\1, \\2 etc. to 
refer to the captures.

HTH,
Sebastian