[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep: 'a?[^b]' != 'a(?)[^b]'
From: |
Peter Reinold |
Subject: |
grep: 'a?[^b]' != 'a(?)[^b]' |
Date: |
15 Nov 2001 17:24:28 +0000 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Hello,
I have tested the following with grep version 2.2, 2.4, 2.4.2 and
2.5e (at least 'a?[^b]' != 'a(?)[^b]'. Is this a bug?
by the way, thanks for that great tool (grep) ;)
Peter
===========
$ grep -E "a(?)[^b]"
ab
ac
ac
$ grep -E "a?[^b]"
ab
ab
ac
ac
$ grep -E 'a?[^b]c'
abc
a#c
a#c
$ grep -E 'a?b[^c]'
abc
ab#
ab#
==========
- grep: 'a?[^b]' != 'a(?)[^b]',
Peter Reinold <=