From owner-freebsd-questions Thu Jun 29 1: 8:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from hq1.tyfon.net (hq1.tyfon.net [213.212.29.17]) by hub.freebsd.org (Postfix) with ESMTP id 710A137B802 for ; Thu, 29 Jun 2000 01:08:15 -0700 (PDT) (envelope-from dl@tyfon.net) Received: from enigmatic (dhcp1.intranet.tyfon.net [192.168.1.20]) by hq1.tyfon.net (Postfix) with SMTP id 793921C5C9 for ; Thu, 29 Jun 2000 10:08:05 +0200 (CEST) From: "Dan Larsson" To: Subject: egrep bug in FreeBSD-3.2S? Date: Thu, 29 Jun 2000 10:07:50 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -> 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