Date: Sat, 4 Dec 2010 17:24:30 -0800 From: Gary Kline <kline@thought.org> To: Joshua Gimer <jgimer@gmail.com> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: regex question.... Message-ID: <20101205012430.GA29153@thought.org> In-Reply-To: <AANLkTinXsSHj4kLha9SgR4T0Rn7TvH1cKmZ-pYe%2BgC-k@mail.gmail.com> References: <20101205002602.GA27499@thought.org> <AANLkTinXsSHj4kLha9SgR4T0Rn7TvH1cKmZ-pYe%2BgC-k@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 04, 2010 at 05:29:49PM -0700, Joshua Gimer wrote: > On Sat, Dec 4, 2010 at 5:26 PM, Gary Kline <kline@thought.org> wrote: > > > I have tried :1,$/s/[0-9]][0-9][0-9]/foo/g > > Why not just %s/[0-9]*/foo/g > So I just missed the "*"? Didn't need to escape the [ or ] ? ---I'll give it a try, thanks! gary PS: See, this is why I keep cheatsheets. ;) > -- > Thanks, > Joshua Gimer > > --------------------------- > > http://www.linkedin.com/in/jgimer > http://twitter.com/jgimer > http://itsecops.blogspot.com/ -- 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?20101205012430.GA29153>