I want to remove the tags similar to & apos; and & lt;
pattern=Pattern.compile("'");
match=pattern.matcher(line);
match.replaceAll("");
But it doesn’t work . I also tried :
line=line.replace("&","");
line=line.replace("apos","");
line=line.replace(";","");
But this time , it replaces only the ; delimitor and not the & and apos ….
You should try following regex to remove following patterns:
<,>,'&:TESTING:
OUTPUT: