DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Java: RegEx To Remove HTML Tags

05.15.2007
| 79406 views |
  • submit to reddit
        // Ref: https://jalbum.net/forum/thread.jspa?forumID=7&threadID=971&messageID=6907

String noHTMLString = htmlString.replaceAll("\\<.*?\\>", "");