I am trying to remove part of a string made up as follows
URL_ORIGINAL = https://www.pagina.com/texto/frase_a_eliminar to leave it this way URL_FINAL = https://www.pagina.com/texto/
How can I do this?
I am trying to remove part of a string made up as follows
URL_ORIGINAL = https://www.pagina.com/texto/frase_a_eliminar to leave it this way URL_FINAL = https://www.pagina.com/texto/
How can I do this?
You can make a substring from position 0 to the position of the last
/
, it is added+1
so that the/
at the end is included: