[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unquoted special characters in regexps

From: martin rudalics
Subject: Re: Unquoted special characters in regexps
Date: Sun, 26 Feb 2006 14:20:26 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

>>From my previous message:
>     But "quoting" `]' by writing "[]]" instead of just `]', seems
>     contorted, even though it would be less confusing than "\\]".
> But if you *really* want to emphasize that the `]' does not close a
> character alternative, "[]]" is the only way I know to do that.
> "\\]" does not do the job.

I didn't care about `]'s closing a character alternative.  I did care
about `]'s appearing in regular expressions _outside_ a character
alternative and meant to match the character `]'.  Such `]'s should be
quoted just like `.', `*', `+', `?', `[', `^', `$', and `\'.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]