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