On 22 Jun 2001 17:11:42 -0400, Jeff 'japhy' Pinyan wrote:
> On Jun 22, Bradford Ritchie said:
> 
> >Does anyone know how to count the number of times a regex (global)
> >matches?
> 
> Either:
> 
>   $count += while /regex/g;
<snip />

I think you meant:

$count++ while /regex/g;

or

$count += 1 while /regex/g;

or am I confused?

--
Today is Pungenday, the 27th day of Confusion in the YOLD 3167



Reply via email to