Follow-up Comment #1, bug #21199 (project grep):

On what system and what distro are you seeing this?  Because here on Gentoo
and Ubuntu Feisty it is behaving as expected, and even a plain grep-2.5.1 does
the right thing:

$ echo 88-88 | egrep -o '([0-9])([0-9])-(1|2){1}'
88-8
$ echo 88-88 | egrep -o '([0-9])([0-9])-(1|2){2}'
88-88
$ echo 88-88 | egrep -o '([0-9])([0-9])-(1|2){3}'
$ echo 88-88 | egrep -o '([0-9])([0-9])-(1|2){4}'


$ echo 88-81 | egrep -o '([0-9])([0-9])-(1|2){1}'
88-8
$ echo 88-81 | egrep -o '([0-9])([0-9])-(1|2){2}'
$ echo 88-81 | egrep -o '([0-9])([0-9])-(1|2){3}'
$ echo 88-81 | egrep -o '([0-9])([0-9])-(1|2){4}'

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?21199>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



Reply via email to