regular expression problem



I want to select a text between square brackets. As it may contain
accents and punctuation I try to use the negation:

"\[([^\]])\]"

However, this does not work and the problem is with the closing square
bracket ("]").

My questions are:
- Is "\]" some reserved sequence with a special meaning.
- if so, how can I work around that and still get functionality I want

.



Relevant Pages

  • Re: Square bracket Syntax and [sic]
    ... > How do you know when to use square brackets to add letters and when to ... you can add necessary punctuation this way. ... If the sics are beginning to appear silly, ...
    (alt.usage.english)
  • Re: Square bracket Syntax and [sic]
    ... >> Also, in cases where you add square brackets, can you make corrections ... or only letters and words? ... Lars Eighner comments: ... you can add necessary punctuation this way. ...
    (alt.usage.english)
  • Re: OT English Strawberrys
    ... More generally, any text in parentheses (square brackets, braces...) ... should contain the punctuation (even an exclamation mark!) ...
    (uk.misc)
  • Re: OT English Strawberrys
    ... More generally, any text in parentheses (square brackets, braces...) ... should contain the punctuation (even an exclamation mark!) ...
    (uk.misc)