From owner-freebsd-newbies@FreeBSD.ORG Sun Jan 23 07:00:38 2005 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FFB616A4CE for ; Sun, 23 Jan 2005 07:00:38 +0000 (GMT) Received: from blackwater.lemis.com (wantadilla.lemis.com [192.109.197.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC2DB43D2F for ; Sun, 23 Jan 2005 07:00:36 +0000 (GMT) (envelope-from grog@lemis.com) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 141B985657; Sun, 23 Jan 2005 17:30:34 +1030 (CST) Date: Sun, 23 Jan 2005 17:30:34 +1030 From: Greg 'groggy' Lehey To: Keith Bottner Message-ID: <20050123070034.GI85706@wantadilla.lemis.com> References: <20050121212021.EC93A43D2D@mx1.FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="m972NQjnE83KvVa/" Content-Disposition: inline In-Reply-To: <20050121212021.EC93A43D2D@mx1.FreeBSD.org> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: "Freebsd-Newbies@Freebsd. Org" Subject: Re: regexec for filtering files in a directory X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2005 07:00:38 -0000 --m972NQjnE83KvVa/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Friday, 21 January 2005 at 15:18:21 -0600, Keith Bottner wrote: > I am trying to use the regcomp and regexec methods to filter files from a > directory; however, the regexec function always says that it matches the > pattern. Is there any problems with the regex functions? Or something in the > code that I am just missing? Or is there just a better way to do what I am > trying to do? Yes. Ask the question on FreeBSD-questions. This question is off-topic for the newbies list, and it's questions like this that risk shutting it down. You'll get better results on -questions. Greg -- See complete headers for address and phone numbers. --m972NQjnE83KvVa/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB80uSIubykFB6QiMRAoXCAJ4/p4d/QxDfcpmyGCb2AgXJ8wKlqACfThWn Kv9NxgCR/CgyhCGKTIA2lWk= =qqnC -----END PGP SIGNATURE----- --m972NQjnE83KvVa/--