remove all tag html regex code example Example: regex remove html tags String target = someString.replaceAll("<[^>]*>", "");