bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] Counting number of matches in record/string


From: Aharon Robbins
Subject: Re: [bug-gawk] Counting number of matches in record/string
Date: Fri, 04 Sep 2015 16:14:10 +0300
User-agent: Heirloom mailx 12.5 6/20/10

> I which gsub(regex,"&",[string]) was optimized to count matches, if
      ^^^^^ You mean "wish"
> not done already. Or is there a better way to count matches in
> record/string?

I don't think I want to add code for that special case.

Nonetheless, I suspect that if you time such a thing with LC_ALL=C
set in the environment, it will run somewhat faster than in a
Unicode locale.

Arnold



reply via email to

[Prev in Thread] Current Thread [Next in Thread]