From owner-freebsd-questions Tue Oct 3 2:34:52 2000 Delivered-To: freebsd-questions@freebsd.org Received: from plab.ku.dk (plab.ku.dk [130.225.105.65]) by hub.freebsd.org (Postfix) with ESMTP id 3764037B502 for ; Tue, 3 Oct 2000 02:34:50 -0700 (PDT) Received: from raven.plab.ku.dk (raven.plab.ku.dk [130.225.105.67]) by plab.ku.dk (8.11.0/8.9.3) with ESMTP id e939Yhu81526 for ; Tue, 3 Oct 2000 11:34:44 +0200 (CEST) (envelope-from postmaster@plab.ku.dk) In-Reply-To: "Duke Normandin"'s message of "Mon, 2 Oct 2000 05:44:10 -0600" Subject: Re: OT - Perl regex problem Content-Transfer-Encoding: 8bit References: <004601c02c66$1a684020$aa9ac5d1@odie> To: "freebsd-questions" From: Dmitry Karasik X-Comment-To: "Duke Normandin" Content-Type: text/plain; charset="koi8-r" Lines: 19 Mime-Version: 1.0 Date: 03 Oct 2000 11:35:16 +0200 X-Mailer: Mail::Mailer[v1.18] Net::SMTP[v2.13] Message-Id: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Duke! On 02 Oct 00 at 05:44, "Duke" (Duke Normandin) wrote: Duke> Hi.. This is a Perl5 regex from some PD utility: Duke> $email =~ s/^.*?(From|Received|Sender|Return-Path|Date):/$1:/s; Duke> I want to do it in Perl4 -- don't ask why ;) -- but it pukes on the Duke> ^.*? stuff. Something about "nested" whatever. Could somebody Duke> explain this ^.*? to me or point me to an appropriate mailing list? Duke> Tia... man perlre -- Sincerely, Dmitry --- www.karasik.eu.org --- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message