I would like to see how to solve the underlying problem with the square brackets. I suspect there is an error with my regular expressions.
Give me a week or so to finish some other work and i'll get back to this.
Incidentally, thanks for coming back to me with this problem.
Cheers
Will.