I have this string /1B5DB40?full
and I want to convert it to 1B5DB40
.
I need to remove the ?full
and the front /
My site won't always have ?full
at the end so I need something that will still work even if the ?full
is not there.
Thanks and hopefully this isn't too confusing to get some help :)
EDIT:
I know I could slice at 0 and 8 or whatever, but the 1B5DB40
could be longer or shorter. For example it could be /1B5DB4000?full
or /1B5