I have the string
var str = "A > B > C > D > E";
expected output:
E
Means i want to remove/replace all the string upto last > symbol, or before > symbol from last.
Javascript replace will do the trick, but i don't know how to write the pattern for this.
or can we do this by split method?