I have this string in a variable: /opt/diferay-portale-8.9.3/tomcat-7.0.18/webapplication/ROOT/data/PDFManager/Il Gatto della Mamma_html
I have to delete the part from opt until ROOT, that is It have to remain the string: /data/PDFManager/Il Gatto della Mamma_html
Can you help me?
you can do :
myString = myString.split("ROOT");
Retrieving data ...