i have a string %/O^/O%/O. I want to find the last / to split the string. First attemp was: \\/[POL]$ but that gets it inclusive the \"O\"
%/O^/O%/O
\\/[POL]$
\"O\"
If all you want is to find the last instance of a character regex is overkill, you should just use String's lastIndexOf
int pos = myString.lastIndexOf('/');