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