[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 19:01:00 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> Martin Rudalics wrote:
>    Such `]'s should be quoted just like `.', `*', `+', `?', `[', `^',
>    `$', and `\'.
> Even if that _would_ be true, `]' should _not_ be quoted as "\\]" but as
> "[]]", as I pointed out earlier.  We are talking about Elisp, not AWK.

The Elisp manual clearly states that "Any other character appearing in a
regular expression is ordinary, unless a `\' precedes it."  Hence,
quoting with a backslash is the canonical method in Elisp.

martin, who doesn't talk AWK.

reply via email to

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