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

Re: [MacPerl] reg exp fun



Scott Prince wrote:
> 
> Ronald, Chris,
> 
> Man, do I feel stupid. It was my inappropriate use of 'while (..) {....}' 
> that was the culprit.
> 

Ah... You were missing the /g at the end of the regex.


> >At 22:55 -0500 6/3/99, Scott Prince spoke thusly:
> >>
> >>while ($q =~ /.*?\$(\w+)-.*?/)



while ($q =~ /\$(\w+)->?/g) {
  ...
}



Ronald

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org