[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unquoted special characters in regexps
From: |
Richard Stallman |
Subject: |
Re: Unquoted special characters in regexps |
Date: |
Mon, 27 Feb 2006 14:03:42 -0500 |
You further argue that "]" is a valid regular expression
outside a character alternative.
Strictly speaking, that is true, it is a valid regular expression.
Hence, "[" must be a valid regular
expression outside a character alternative too.
That doesn't follow. Strictly speaking, "[" is not a valid regular
expression.
However, that doesn't necessarily mean the manual is wrong.
There is more than one way to understand the word "special".
At the most literal level, ] is not special; if you write it
without \\, the regexp compiler won't misunderstand it.
However, it does play a special role in the syntax of regexps,
and it is not necessarily a bad thing for users to think of it
as a special character.
Message not available
Message not available
Re: Unquoted special characters in regexps, martin rudalics, 2006/03/02
Re: Unquoted special characters in regexps, Luc Teirlinck, 2006/03/02
Re: Unquoted special characters in regexps, martin rudalics, 2006/03/03
Re: Unquoted special characters in regexps, Luc Teirlinck, 2006/03/03
Re: Unquoted special characters in regexps, martin rudalics, 2006/03/03
Re: Unquoted special characters in regexps, Luc Teirlinck, 2006/03/03