kline at thought.org
Sun Dec 5 00:26:09 UTC 2010
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.
Gary Kline kline at thought.org 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
More information about the freebsd-questions