jonnyfolk has asked for the wisdom of the Perl Monks concerning the following question:
The following code is ignoring the text I would like to extract from html:
and the regex is:<div class="detailline_address"> 15480 W 66TH AVE Whiten, CO 86663 </div>
where subroutine p simply formats the print command.if ($r =~ m#<div class="detailline_address">\s*?(.*?)\s*?</div>#) { p( +"Address: $1"); }
Could someone give me a few pointers please?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: regex to extract text
by CountZero (Bishop) on Jan 18, 2009 at 17:31 UTC | |
by jonnyfolk (Vicar) on Jan 18, 2009 at 21:22 UTC | |
by graff (Chancellor) on Jan 19, 2009 at 07:46 UTC | |
by pdcawley (Hermit) on Jan 19, 2009 at 17:02 UTC | |
Re: regex to extract text
by AnomalousMonk (Archbishop) on Jan 18, 2009 at 18:27 UTC |
Back to
Seekers of Perl Wisdom