in reply to Re: Global regex giving up too soon
in thread Global regex giving up too soon
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!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Global regex giving up too soon
by Abigail-II (Bishop) on Jan 20, 2004 at 11:28 UTC | |
by Wassercrats (Initiate) on Jan 20, 2004 at 11:38 UTC | |
by Abigail-II (Bishop) on Jan 20, 2004 at 11:46 UTC | |
by Wassercrats (Initiate) on Jan 20, 2004 at 12:10 UTC | |
by Abigail-II (Bishop) on Jan 20, 2004 at 12:22 UTC | |
| |
Re: Re: Re: Global regex giving up too soon
by jdporter (Paladin) on May 03, 2004 at 04:53 UTC |
In Section
Seekers of Perl Wisdom