From owner-freebsd-questions Fri Feb 9 1: 9: 9 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dante.naver.co.id (unknown [202.155.86.83]) by hub.freebsd.org (Postfix) with ESMTP id F0FFC37B67D for ; Fri, 9 Feb 2001 01:08:51 -0800 (PST) Received: by dante.naver.co.id (Postfix, from userid 1000) id 46D611CB316; Fri, 9 Feb 2001 16:08:49 +0700 (JAVT) Date: Fri, 9 Feb 2001 16:08:49 +0700 From: John Indra To: freebsd-questions@freebsd.org Subject: Crafting Perl RE... Message-ID: <20010209160849.A97806@office.naver.co.id> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailer: Mutt 1.2.5i on FreeBSD 5.0-CURRENT i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi... Simple question but I don't know the answer. Suppose I have this string: somefile.ins.jpg. I want to craft a Perl RE so it captures the jpg part. I try this RE: $string =~ m#\.(.*)$# Unfortunately $1 captures ins.jpg, not jpg as I want. What RE to get it right? Thanks... /john To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message