ansh batra has asked for the wisdom of the Perl Monks concerning the following question:
hello monks
i am trying to fetch multiple matches
i am getting only the first match i.e. ../../../KeyboardKeys/RetainerClip/Acer/Aspire/1400$string="<ul><li><div id='Show1400'><a href='../../../KeyboardKeys/Ret +ainerClip/Acer/Aspire/1400'>1400</a></div></li><li><div id='Show1410' +><a href='../../../KeyboardKeys/RetainerClip/Acer/Aspire/1410'>1410</ +a></div></li>"; my @ari=$line =~ /<a href=\'(.*?)\'>.*<\/a>/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regular expression fetching multiple matches
by dave_the_m (Monsignor) on Jan 06, 2013 at 11:17 UTC | |
by ansh batra (Friar) on Jan 06, 2013 at 11:21 UTC | |
|
Re: SOLVED:Regular expression fetching multiple matches
by 7stud (Deacon) on Jan 09, 2013 at 08:16 UTC | |
by ansh batra (Friar) on Jan 10, 2013 at 11:28 UTC | |
|
Re: SOLVED:Regular expression fetching multiple matches
by 7stud (Deacon) on Jan 14, 2013 at 03:02 UTC |