regex question....

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

>>>>> "Joshua" == Joshua Gimer <jgimer at> writes:

Joshua> On Sat, Dec 4, 2010 at 5:26 PM, Gary Kline <kline at> 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> <URL:>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See for Smalltalk discussion

More information about the freebsd-questions mailing list