I am trying find and delete a tag.
Say I want <html>, < HTML >, </html>, </ HTML> to be deleted..
There could be one or more spaces between < and h.
They can be upper or lowercases..
esponseString = some html page.
Pattern pattern = Pattern.compile("</?[hH][tT][mM][lL]>", Pattern.CASE_INSENSITIVE);
Matcher matcher = pattern.matcher(responseString);
responseString = matcher.replaceAll("");
Can you help?? please
Say I want <html>, < HTML >, </html>, </ HTML> to be deleted..
There could be one or more spaces between < and h.
They can be upper or lowercases..
esponseString = some html page.
Pattern pattern = Pattern.compile("</?[hH][tT][mM][lL]>", Pattern.CASE_INSENSITIVE);
Matcher matcher = pattern.matcher(responseString);
responseString = matcher.replaceAll("");
Can you help?? please