View Single Post
  #2 (permalink)  
Old 05-31-2007, 10:42 PM
levent levent is offline
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
You can use following code segment:

Code:
String[] html = {"<H1>xxx</H2>","<font size=3>xxxx</font>"}; System.out.println(html[0].replaceAll("\\<.*?\\>","")); System.out.println(html[1].replaceAll("\\<.*?\\>",""));
But if you need more advanced functionality, you can consider using a HTML parsing library instead:

HTML Parser - HTML Parser
Jericho HTML Parser
Reply With Quote