我用正則表達式,我應該嘗試這些問題:Java正則表達式下大寫
"<td><font size=1>LA SPEDIZIONE E' IN VIAGGIO</font></td>
<td><font size=1>Hub Pacchi Milano</font></td>"
首先,我嘗試用大寫字母,然後用一個大寫和小寫。 我停在這裏:
Pattern uppercase= Pattern.compile("<td><font size=1>(.*?)</font></td>");
Pattern lowcase = Pattern.compile("<td><font size=1>(.*?)</font></td>");
但是,這我期待的一切!我能怎麼做?
不要用規則的表達式來分析HTML!請參閱http://www.codinghorror.com/blog/2009/11/parsing-html-the-cthulhu-way.html – hsanders