[vox-tech] regex help - matching literal []

Rod Roark rod at sunsetsystems.com
Fri Apr 28 13:25:41 PDT 2006


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


More information about the vox-tech mailing list