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