From owner-freebsd-questions@FreeBSD.ORG Sun Dec 5 08:44:09 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 6F832106566B for ; Sun, 5 Dec 2010 08:44:09 +0000 (UTC) (envelope-from rwmaillists@googlemail.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 F25DA8FC1D for ; Sun, 5 Dec 2010 08:44:08 +0000 (UTC) Received: by wwf26 with SMTP id 26so6764893wwf.31 for ; Sun, 05 Dec 2010 00:44:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=+sJxpZemPSsVj1RT3U5deMasoQ97moXvog1AALu8cag=; b=xYgsKCWq5zpdxsGWwJMMqn82qUd2kePLWzakL7G3Ia1EqlcOuo9dmf3OL6fT/LAg1r mpt6wqv/eDpkExwYxyU0HhyFVEcTjXZomkXVFZhWgTazO3cLjG3uDFQw3QB40uOx315h y8CHQa00mb1UhRqlqU/veaapBcD01p7eG7n/4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=q8q0eIdiS0TMuLlDCbh0pPQJcYpmvudLICR6XUGHKeakGcOLfoWlK/n1nlOaDVpPSD cFpiIzIsQWxwNZS/N3t72WioWDqmRx/QhICQSMcv2LQNWv/tNdCHttS6BLh2J270rVrO vo1UCbujsRlDMEc8nAlXqK1jXc8x6DAJ7sy04= Received: by 10.227.129.9 with SMTP id m9mr4124115wbs.116.1291538647785; Sun, 05 Dec 2010 00:44:07 -0800 (PST) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id h29sm2566294wbc.21.2010.12.05.00.44.05 (version=SSLv3 cipher=RC4-MD5); Sun, 05 Dec 2010 00:44:06 -0800 (PST) Date: Sun, 5 Dec 2010 08:44:03 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20101205084403.59ad70e7@gumby.homeunix.com> In-Reply-To: <20101205043257.GA3854@thought.org> References: <20101205002602.GA27499@thought.org> <4cfaf16b./uHAeLS0wfpxq8FB%perryh@pluto.rain.com> <20101205043257.GA3854@thought.org> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.22.1; i386-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 08:44:09 -0000 On Sat, 4 Dec 2010 20:32:57 -0800 Gary Kline wrote: > On Sat, Dec 04, 2010 at 06:49:45PM -0800, xSAPPYx wrote: > > Also, the + operator means '1 or more' but needs escaped: > > %s/[0-9]\+/foo/g > > > Okay. I thought that the + must be perl-only regex... . It's from "Extended" REs rather than perl specifically, it works with sed -E but not plain sed. Not sure about vi.