[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNU m4 1.4.16] Shy groups in regular expressions
From: |
Tim Landscheidt |
Subject: |
[GNU m4 1.4.16] Shy groups in regular expressions |
Date: |
Sun, 11 Mar 2012 23:06:23 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Hi,
the documentation for regexp says:
| -- Builtin: regexp (STRING, REGEXP, [REPLACEMENT])
| Searches for REGEXP in STRING. The syntax for regular expressions
| is the same as in GNU Emacs, which is similar to BRE, Basic
| Regular Expressions in POSIX. *Note Syntax of Regular
| Expressions: (emacs)Regexps. Support for ERE, Extended Regular
| Expressions is not available, but will be added in GNU M4 2.0.
| [...]
However:
| address@hidden ~]$ m4
| regexp(`abc', `\(b\)')
| 1
| regexp(`abc', `\(?:b\)')
| -1
| address@hidden ~]$
Emacs's documentation on "Backslash in Regular Expressions"
that is linked from m4's info file doesn't seem to imply
that shy groups were in fact ERE. So is this a bug?
Tim
- [GNU m4 1.4.16] Shy groups in regular expressions,
Tim Landscheidt <=