On Friday 28 April 2006 01:07 pm, Peter Jay Salzman wrote: ... > However, the compiler complains when I escape the square brackets with a > backslash. For some reason \[ doesn't match a literal [. Sounds like you need to double up on the backslashes -- once for the compiler's parsing of string literals, and once for the regex parser. Rod