Link to home
Start Free TrialLog in
Avatar of Neil Thompson
Neil ThompsonFlag for United Kingdom of Great Britain and Northern Ireland

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
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Neil Thompson

ASKER

Brilliant, 2 in 1 :)

Thanks so much
Neil