Neil Thompson
asked on
find the last instance of / and replace it with /t_ in a string
Hi
I want to be able to find the last instance of / in a string and replace it with /t_ how can I achieve that please?
I'm guessing its some use of strrpos or regex but I cant then figure out how I'd add the bit in the middle?
Thanks
Neil
I want to be able to find the last instance of / in a string and replace it with /t_ how can I achieve that please?
I'm guessing its some use of strrpos or regex but I cant then figure out how I'd add the bit in the middle?
Thanks
Neil
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks so much
Neil