Date: Sat, 4 Dec 2010 16:26:08 -0800 From: Gary Kline <kline@thought.org> To: FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG> Subject: regex question.... Message-ID: <20101205002602.GA27499@thought.org>
next in thread | raw e-mail | index | archive | help
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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101205002602.GA27499>