regex question....
- From: Gary Kline <kline@xxxxxxxxxxx>
- Date: Sat, 4 Dec 2010 16:26:08 -0800
Gang,
I was tried to find Jeffrey Friedl's email to figure out some quick
regex when it struck me that the list can clue me in.... [[I have
figured this out myself several times--well, 3 or 4 anyway--but it
was more trial/error than I need.]]
I have a file with ints from 0 to some N. What is the regex for vi
or vim to use that will catch them all in one substititon command?
I have tried :1,$/s/[0-9]][0-9][0-9]/foo/g
or things very close to that. Zip. I could have sworn that I noted
it dow n somewhere; cannot find.
tia.
--
Gary Kline kline@xxxxxxxxxxx http://www.thought.org Public Service Unix
Journey Toward the Dawn, E-Book: http://www.thought.org
The 7.97a release of Jottings: http://jottings.thought.org
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: regex question....
- From: Joshua Gimer
- Re: regex question....
- Prev by Date: Re: FreeBSD on Virtualbox: No network access
- Next by Date: Re: regex question....
- Previous by thread: Re: FreeBSD samba+winbind
- Next by thread: Re: regex question....
- Index(es):
Relevant Pages
|