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