Date: Sun, 5 Dec 2010 10:19:45 -0800 From: Chip Camden <sterling@camdensoftware.com> To: freebsd-questions@freebsd.org Subject: Re: regex question.... Message-ID: <20101205181945.GC39513@libertas.local.camdensoftware.com> In-Reply-To: <20101205084403.59ad70e7@gumby.homeunix.com> References: <20101205002602.GA27499@thought.org> <AANLkTinXsSHj4kLha9SgR4T0Rn7TvH1cKmZ-pYe%2BgC-k@mail.gmail.com> <4cfaf16b./uHAeLS0wfpxq8FB%perryh@pluto.rain.com> <AANLkTinLu9Uiu0WRfo_-5QDWDnuQG7sXfGqFaVgXAd5u@mail.gmail.com> <20101205043257.GA3854@thought.org> <20101205084403.59ad70e7@gumby.homeunix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <kline@thought.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101205181945.GC39513>