imrags has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to remove html tags and fetch the html table data..
I've come to a stage where i need the table between these two html tags:
Is there a way to strip the html tags and take the table content into html?
What is the mistake in the code above?
I've come to a stage where i need the table between these two html tags:
So, i wrote this regex to get the content<div class='roundedBoxBody'><p> #table that i need <p> </p></p>
However, it doesn't work, it doesn't give any error as well.$x = "<div class=\'roundedBoxBody\'><p>"; $y = '<p> \;</p></p>'; $content =~ /$x(.*)$y/ and $content_out = $1; print $content_out;
Is there a way to strip the html tags and take the table content into html?
What is the mistake in the code above?
Raghu
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Regex not working
by davorg (Chancellor) on Jul 17, 2009 at 09:31 UTC | |
Re: Regex not working
by prasadbabu (Prior) on Jul 17, 2009 at 09:40 UTC | |
by davorg (Chancellor) on Jul 17, 2009 at 09:44 UTC | |
Re: Regex not working
by Anonymous Monk on Jul 17, 2009 at 09:36 UTC | |
Re: Regex not working
by imrags (Monk) on Jul 17, 2009 at 10:10 UTC | |
by grinder (Bishop) on Jul 17, 2009 at 12:03 UTC | |
by prantikd (Novice) on Jul 18, 2009 at 12:20 UTC |
Back to
Seekers of Perl Wisdom