regex question....
Gary Kline
kline at thought.org
Sun Dec 5 01:24:31 UTC 2010
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 at 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 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
mailing list