From owner-freebsd-questions@FreeBSD.ORG Sun Dec 5 01:32:41 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D0BB106566B for ; Sun, 5 Dec 2010 01:32:41 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id F16DB8FC0A for ; Sun, 5 Dec 2010 01:32:40 +0000 (UTC) Received: from r55.edvax.de (port-92-195-8-222.dynamic.qsc.de [92.195.8.222]) by mx01.qsc.de (Postfix) with ESMTP id 276533D2F8; Sun, 5 Dec 2010 02:32:39 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id oB51WciH003284; Sun, 5 Dec 2010 02:32:38 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 5 Dec 2010 02:32:38 +0100 From: Polytropon To: Gary Kline Message-Id: <20101205023238.0ffcef3e.freebsd@edvax.de> In-Reply-To: <20101205012430.GA29153@thought.org> References: <20101205002602.GA27499@thought.org> <20101205012430.GA29153@thought.org> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List Subject: Re: regex question.... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Dec 2010 01:32:41 -0000 On Sat, 4 Dec 2010 17:24:30 -0800, Gary Kline wrote: > So I just missed the "*"? Yes. In regex, * means "any amount of", if I remember correctly. So you don't have to specify precisely how many numbers there are. How many lights? :-) > Didn't need to escape the [ or ] ? No, as you want them in their regex meaning, "in the range of", not literal [ and ]. > PS: See, this is why I keep cheatsheets. ;) That's the fat green book on my shelf. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...