From owner-freebsd-questions@FreeBSD.ORG Sat Jan 20 21:41:45 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EB12316A40A for ; Sat, 20 Jan 2007 21:41:45 +0000 (UTC) (envelope-from parv@pair.com) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.freebsd.org (Postfix) with ESMTP id AE05B13C442 for ; Sat, 20 Jan 2007 21:41:45 +0000 (UTC) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([24.126.17.68]) by mta10.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20070120214142.PAYF28374.mta10.adelphia.net@default.chvlva.adelphia.net>; Sat, 20 Jan 2007 16:41:42 -0500 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id 741E3B7AE; Sat, 20 Jan 2007 16:41:46 -0500 (EST) Date: Sat, 20 Jan 2007 16:41:46 -0500 From: Parv To: applecom@inbox.ru Message-ID: <20070120214146.GC1221@holestein.holy.cow> Mail-Followup-To: applecom@inbox.ru, Parker Anderson , freebsd-questions@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: Parker Anderson , freebsd-questions@freebsd.org Subject: Re: regexp [. .] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2007 21:41:46 -0000 in message , wrote applecom@inbox.ru thusly... > > On Wed, 17 Jan 2007 07:15:34 +0500, Parker Anderson > wrote: > > >Is there a certain match you are trying to pattern? From the > >looks of it, [ch]* would match a similar set of characters, but > >it isn't as strict about which pattern they should be in. > > I need 'some[^[.pattern.]]' working, i.e. matching 'some' if it > isn't followed by 'pattern'. Curiously that seems there isn't > additional information about it somewhere except the page you've > denoted. I missed the beginning of the thread, but in case you are|can use perl, following use of zero-width negative look-ahead assertion will match 'some' that is not followed by 'pattern' ... 'm/some(?!pattern)/' See perlre(1), "(?!pattern)" section (& around it) for details. - Parv --