Keep It Simple, Stupid | |
PerlMonks |
Re: Re: Global regex giving up too soonby Wassercrats (Initiate) |
on Jan 20, 2004 at 11:24 UTC ( [id://322558]=note: print w/replies, xml ) | Need Help?? |
For the given example string, there's only one "href", so the /g is pointless as well. I figured that was my problem. That's why I tried using /c, but I couldn't find a good description of how it worked. So basically, I guess there is no way to get /g to look over the entire regex, so I'll have to use while $& or establish that there's an href earlier so I don't have to use it in the regex. Anyway, thanks for not telling me to use a module!
In Section
Seekers of Perl Wisdom
|
|