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:
<div class='roundedBoxBody'><p>
#table that i need
<p> </p></p>
So, i wrote this regex to get the content
$x = "<div class=\'roundedBoxBody\'><p>";
$y = '<p> \;</p></p>';
$content =~ /$x(.*)$y/ and $content_out = $1;
print $content_out;
However, it doesn't work, it doesn't give any error as well.
Is there a way to strip the html tags and take the table content into html?
What is the mistake in the code above?
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|