regex question....

Randal L. Schwartz merlyn at stonehenge.com
Sun Dec 5 17:37:31 UTC 2010


>>>>> "Joshua" == Joshua Gimer <jgimer at gmail.com> writes:

Joshua> 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

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 at 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


More information about the freebsd-questions mailing list