From owner-freebsd-questions@FreeBSD.ORG Sun Dec 5 18:19:51 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 0B5BF106564A for ; Sun, 5 Dec 2010 18:19:51 +0000 (UTC) (envelope-from sterling@camdensoftware.com) Received: from wh2.interactivevillages.com (wh2.interactivevillages.com [75.125.250.34]) by mx1.freebsd.org (Postfix) with ESMTP id C295A8FC12 for ; Sun, 5 Dec 2010 18:19:50 +0000 (UTC) Received: from 174-21-106-20.tukw.qwest.net ([174.21.106.20] helo=_HOSTNAME_) by wh2.interactivevillages.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1PPJzK-0000tI-H9 for freebsd-questions@freebsd.org; Sun, 05 Dec 2010 11:11:11 -0800 Received: by _HOSTNAME_ (sSMTP sendmail emulation); Sun, 05 Dec 2010 10:19:45 -0800 Date: Sun, 5 Dec 2010 10:19:45 -0800 From: Chip Camden To: freebsd-questions@freebsd.org Message-ID: <20101205181945.GC39513@libertas.local.camdensoftware.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <20101205002602.GA27499@thought.org> <4cfaf16b./uHAeLS0wfpxq8FB%perryh@pluto.rain.com> <20101205043257.GA3854@thought.org> <20101205084403.59ad70e7@gumby.homeunix.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Pk6IbRAofICFmK5e" Content-Disposition: inline In-Reply-To: <20101205084403.59ad70e7@gumby.homeunix.com> User-Agent: Mutt/1.4.2.3i Company: Camden Software Consulting URL: http://camdensoftware.com X-PGP-Key: http://pgp.mit.edu:11371/pks/lookup?search=0xD6DBAF91 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - wh2.interactivevillages.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - camdensoftware.com 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 18:19:51 -0000 --Pk6IbRAofICFmK5e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoth RW on Sunday, 05 December 2010: > On Sat, 4 Dec 2010 20:32:57 -0800 > Gary Kline wrote: >=20 > > On Sat, Dec 04, 2010 at 06:49:45PM -0800, xSAPPYx wrote: >=20 > > > Also, the + operator means '1 or more' but needs escaped: > > > %s/[0-9]\+/foo/g > >=20 > >=20 > > Okay. I thought that the + must be perl-only regex... . >=20 > It's from "Extended" REs rather than perl specifically, it works > with sed -E but not plain sed. Not sure about vi. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" For me in works in vim but not in vi. --=20 Sterling (Chip) Camden | sterling@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com | http://chipsquips= .com --Pk6IbRAofICFmK5e Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQEcBAEBAgAGBQJM+9fBAAoJEIpckszW26+RaFIH/jPRK5Sr48O1kxu8TjOcMeg6 IurCDaTzRkeslSZfoGj8LMJQNu7ZIjxB02fr0axvwlUc0iyV7xeAmBi1HDwePgJi EVxeGjlk+VkZQy7snd4jhRWWoUh6rypU38ZroSD2DFDj0KFGXHyrgvINDrplmVk2 gwORLBqVAgEA4me1NL5hHaflWSggDBuR+dGycVbaevAktJZedIj9s3dvtxuKYIeU p8tHBtP6MjfkC2NOi59EBNNPw7ficmBl8Ac7GP+6m8Jj1MniUjtVH8/LTaGLgiRF EDijVv6geP2PvaqDREp9kP6fuSlCk4yNPsa8Ys5+bAhdIeIgq4lSutVZN3vjImQ= =Bt3r -----END PGP SIGNATURE----- --Pk6IbRAofICFmK5e--