Date: Sun, 05 Dec 2010 09:37:30 -0800 From: merlyn@stonehenge.com (Randal L. Schwartz) To: Joshua Gimer <jgimer@gmail.com> Cc: Gary Kline <kline@thought.org>, FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: regex question.... Message-ID: <864oas6rz9.fsf@red.stonehenge.com> In-Reply-To: <AANLkTinXsSHj4kLha9SgR4T0Rn7TvH1cKmZ-pYe%2BgC-k@mail.gmail.com> (Joshua Gimer's message of "Sat, 4 Dec 2010 17:29:49 -0700") References: <20101205002602.GA27499@thought.org> <AANLkTinXsSHj4kLha9SgR4T0Rn7TvH1cKmZ-pYe%2BgC-k@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Joshua" == Joshua Gimer <jgimer@gmail.com> writes: Joshua> 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 Joshua> Why not just %s/[0-9]*/foo/g Because that would turn a line of "fred" into "foofred". :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?864oas6rz9.fsf>