From owner-freebsd-questions@FreeBSD.ORG Sun Dec 5 01:00:56 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 A1A65106566B for ; Sun, 5 Dec 2010 01:00:56 +0000 (UTC) (envelope-from jgimer@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 270888FC08 for ; Sun, 5 Dec 2010 01:00:55 +0000 (UTC) Received: by wwf26 with SMTP id 26so6590846wwf.31 for ; Sat, 04 Dec 2010 17:00:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=32MQcoVdpJQeSKF+CUyPXbfgADhGELrHESIqQm1ANdg=; b=J1KvMqhCcDtqc1VbiR/YlroKmJkJWQT+mtK1sAtoK6hUPAZmrDIViyJQgJv0NX+rpl AKFz3AKtmxNVYvHz3a+9GDRqVYIGO75tz9ykHvi/ZS9cXb/GpeFkqJOH4HR0UkM0KjQt cdsg/DYOie0XZC0do1PMMReSfv/aE6gxKaBqc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=QusgyuK1rDSnSiWrMt580gQdLAVUMFjjkD6UTOhMCUPxOw0+bwTYjlwmnv5QgE1vcs fjwWWJ1TbWiwBnG5qeb8L/6ZGMEd+PYftB+LpSXRgJWzzxTjQTqvMYhBIuTxVQ9tluHx a0dgw0vk3QxqbcZH7dAVHyAAdznWKxLHli15o= MIME-Version: 1.0 Received: by 10.216.47.140 with SMTP id t12mr3438355web.102.1291508989922; Sat, 04 Dec 2010 16:29:49 -0800 (PST) Received: by 10.216.28.137 with HTTP; Sat, 4 Dec 2010 16:29:49 -0800 (PST) In-Reply-To: <20101205002602.GA27499@thought.org> References: <20101205002602.GA27499@thought.org> Date: Sat, 4 Dec 2010 17:29:49 -0700 Message-ID: From: Joshua Gimer To: Gary Kline Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Mailing List Subject: Re: regex question.... 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: Sun, 05 Dec 2010 01:00:56 -0000 On Sat, Dec 4, 2010 at 5:26 PM, Gary Kline wrote: > I have tried :1,$/s/[0-9]][0-9][0-9]/foo/g Why not just %s/[0-9]*/foo/g -- Thanks, Joshua Gimer --------------------------- http://www.linkedin.com/in/jgimer http://twitter.com/jgimer http://itsecops.blogspot.com/