rahulgsp83 has asked for the wisdom of the Perl Monks concerning the following question:
with this regex<item name="pdf_link"> <value>http://www.yahoo.com</value> </item>
the control flow is parsing that line ,but regex is not matching ,i need the value between <value> tags, ideally if i write print $3 it should give me that value but it printing blank , looking forward for some guidance from experts, regards, rahulif($line=~/(.*)(<item name=\"pdf_link\">\s*<value>)(.*)(<\/value>)(.*) +/i)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex matching issue (XML parse)
by toolic (Bishop) on Mar 09, 2010 at 14:39 UTC | |
|
Re: regex matching issue
by LanX (Saint) on Mar 09, 2010 at 14:36 UTC | |
|
Re: regex matching issue
by BioLion (Curate) on Mar 09, 2010 at 14:51 UTC | |
|
Re: regex matching issue
by Ratazong (Monsignor) on Mar 09, 2010 at 14:41 UTC | |
by rahulgsp83 (Novice) on Mar 09, 2010 at 16:12 UTC | |
|
Re: regex matching issue
by FunkyMonk (Bishop) on Mar 09, 2010 at 14:53 UTC |