I have the following Java code:
str = str.replaceAll(\"<.*?>.*?|<.*?/>\", \"\");
This turns a String like so:
If you want to parse XML log file so you can do with regex {java}, <[^<]+<.so you get DEV. Output like name>DEV. You have to just play with REGEX.
<[^<]+<
DEV