From: "Daniel J. Tomso" <[EMAIL PROTECTED]>
> I'm matching a pattern against a long string, and I want to examine
> each occurrence of the match. I know that $& stores the match, but is
> there a way to store EVERY match in the string, and then look at them?
Dont use $&, it'll slow down ALL rege
"Daniel J. Tomso" wrote:
>
> Greetings.
>
> I'm matching a pattern against a long string, and I want to examine each
> occurrence of the match. I know that $& stores the match, but is there
> a way to store EVERY match in the string, and then look at them?
>
> Example:
>
> $str = "This is a v
Greetings.
I'm matching a pattern against a long string, and I want to examine each
occurrence of the match. I know that $& stores the match, but is there
a way to store EVERY match in the string, and then look at them?
Example:
$str = "This is a very long string, isn't it?"
If I want to matc