How can we remove tags appearing at the end of the string?
Input
String test ="test string<.div class="og></div..>"
outPut
String test ="test string";
while printing I only want test string. Some times at the the string test contains tags other than div tag. How to resolve this?
Use regular expression to process this: