[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unquoted special characters in regexps
From: |
Luc Teirlinck |
Subject: |
Re: Unquoted special characters in regexps |
Date: |
Thu, 2 Mar 2006 17:26:43 -0600 (CST) |
Martin Rudalics wrote:
"\\(\[[0-9]+\] \\)*\\([a-zA-Z0-9.$_]+\\)\\.[a-zA-Z0-9$_<>(),]+ \
\\(([a-zA-Z0-9.$_]+:\\|line=\\)\\([0-9.,]+\\)"
Experience tells me that this should be probably written as
"\\(\\[[0-9]+\\] \\)*\\([a-zA-Z0-9.$_]+\\)\\.[a-zA-Z0-9$_<>(),]+ \
\\(([a-zA-Z0-9.$_]+:\\|line=\\)\\([0-9.,]+\\)"
but I'm not quite sure since `gud.el' is one of the few Emacs files that
do not consistently use `\\]' to match a right bracket.
I do not see what this problem has to do with "\\]" vs ']'.
This seems to be just a case of forgetting to double up `\' for Lisp
syntax. The actually intended regexo would seem to obviously be:
"\\(\\[[0-9]+] \\)* and so on.
The present regexp is valid, but the syntax it is looking for seems
bizarre. On the other hand looking for things like:
"[123] [5] [2034] "
seems to make sense.
Sincerely,
Luc.
- Re: Unquoted special characters in regexps, (continued)
Message not available
Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Re: Unquoted special characters in regexps, Richard Stallman, 2006/03/04
- Re: Unquoted special characters in regexps, Luc Teirlinck, 2006/03/01
- Re: Unquoted special characters in regexps, Richard Stallman, 2006/03/02
- Re: Unquoted special characters in regexps, Luc Teirlinck, 2006/03/02
- Re: Unquoted special characters in regexps, Richard Stallman, 2006/03/02
Re: Unquoted special characters in regexps, martin rudalics, 2006/03/02
Re: Unquoted special characters in regexps,
Luc Teirlinck <=
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
Re: Unquoted special characters in regexps, Luc Teirlinck, 2006/03/03
Re: Unquoted special characters in regexps, Luc Teirlinck, 2006/03/04
Re: Unquoted special characters in regexps, Richard Stallman, 2006/03/04
Re: Unquoted special characters in regexps, martin rudalics, 2006/03/03
Re: Unquoted special characters in regexps, Richard Stallman, 2006/03/04
Re: Unquoted special characters in regexps, martin rudalics, 2006/03/04