I have a string variable in Java with the value below:
String str = "web > data > list > new_list.html";
I want my final string like so:
String str = "new_list.html";
I have tried like this:
final Pattern pattern = Pattern.compile("[\\>.]");
final String[] result = pattern.split(str);
But it is returning data > list > new_list.html
How can i get exact substring new_list.html
?