Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jun 2000 10:07:50 +0200
From:      "Dan Larsson" <dl@tyfon.net>
To:        <questions@freebsd.org>
Subject:   egrep bug in FreeBSD-3.2S?
Message-ID:  <NEBBJANJCNNAKCPFKHHFOEOACHAA.dl@tyfon.net>

next in thread | raw e-mail | index | archive | help
-> Why doesn't the following work:

echo 100.200.300.400 | egrep -e '^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$'

(I've also tried the regexp escaping the repetition operators with the same result)

-> when this does:

echo 100.200.300.400 | egrep -e '^[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*$'

Is it a bug in egrep? The regexp works on FreeBSD-4.0S!

Regards
------------
Dan Larsson


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NEBBJANJCNNAKCPFKHHFOEOACHAA.dl>