Posix search for ] in brackets
Posted: Mon Apr 04, 2011 11:42 pm
Consider the following Posix RegExp and search text:
Regex: [a\]]+
Text: baa[aa]aab
I would expect the regex to match aa]aa, but for some reason it matches a] instead. I think it's because TextPad doesn't recognise \]. If this is the case, then it's a bug.
Does anyone know how to solve/workaround this problem?
Regex: [a\]]+
Text: baa[aa]aab
I would expect the regex to match aa]aa, but for some reason it matches a] instead. I think it's because TextPad doesn't recognise \]. If this is the case, then it's a bug.
Does anyone know how to solve/workaround this problem?