regex question....
Chip Camden
sterling at camdensoftware.com
Sun Dec 5 18:19:51 UTC 2010
Quoth RW on Sunday, 05 December 2010:
> On Sat, 4 Dec 2010 20:32:57 -0800
> Gary Kline <kline at thought.org> 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.
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
For me in works in vim but not in vi.
--
Sterling (Chip) Camden | sterling at camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com | http://chipsquips.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20101205/101951f5/attachment.pgp
More information about the freebsd-questions
mailing list