daviddhall has asked for the wisdom of the Perl Monks concerning the following question:
It returns most of the line. Any cute, easy way to tell it to only return the LAST match?if ($line =~ /a HREF=\"(.*?)\" Next Page/) { print $1; }
Edit 2001-03-06 by tye: Added <code> tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regular Expression Matching
by danger (Priest) on Mar 07, 2001 at 11:37 UTC | |
|
(Ovid) Re: Regular Expression Matching
by Ovid (Cardinal) on Mar 07, 2001 at 16:04 UTC | |
by Anonymous Monk on Mar 08, 2001 at 05:53 UTC | |
by Ovid (Cardinal) on Mar 08, 2001 at 13:51 UTC | |
|
(tye)Re: Regular Expression Matching
by tye (Sage) on Mar 07, 2001 at 11:38 UTC | |
|
Re: Regular Expression Matching
by I0 (Priest) on Mar 07, 2001 at 11:35 UTC |