Vexing regex question--storing multiple hits for later use

2002-03-06 Thread Daniel J. Tomso
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 match

Re: Vexing regex question--storing multiple hits for later use

2002-03-06 Thread Jon Molin
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 very long

Re: Vexing regex question--storing multiple hits for later use

2002-03-06 Thread Jenda Krynicky
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 regexps even