sugarkannan has asked for the wisdom of the Perl Monks concerning the following question:
2. I have the following chunk of code. In this I require UK$content='<td valign="top" align="justify"><font face="arial" size="2" + color="BA3B38">Java and databases make a powerful combination. <br> Getting the two sides <br> to work together <br> Takes some effort to work together JDBC 2 javax.SQL </td></tr>'; $content =~ m{<td valign="top" align="justify"><font face="arial" size +="2" color="BA3B38">([.*?]+)<\td><\tr>}; print "$1\n\n";
3."Parsing of undecoded UTF-8 will give garbage when<tr><td><font face="verdana" size="1"><b>Product Name</b> </td><td>:</ +td> <td><div align="justify"><font face="verdana" size="1">Queen of Al +ls</div></td> <td rowspan="5" valign="top"><img src="pictures/queen.gif"></td></ +tr> </tr> <tr><td><font face="verdana" size="1"><b>Price(UK Pound)</b></td><td>: +</td> <td><font face="verdana" size="1">12.00</td></tr> <tr><td><font face="verdana" size="1"><b>Price($)</b></td><td>:</td> <td><font face="verdana" size="1">$27.27</td></tr> <tr valign="TOP"><td><font face="verdana" size="1"><b>Description</b>< +/td><td>:</td></tr>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems with LWP and REGEX
by pileofrogs (Priest) on Nov 18, 2005 at 20:40 UTC | |
by sugarkannan (Novice) on Nov 19, 2005 at 02:30 UTC | |
|
Re: Problems with LWP and REGEX
by ptum (Priest) on Nov 18, 2005 at 20:59 UTC | |
by sugarkannan (Novice) on Nov 19, 2005 at 12:32 UTC |