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