I have two awesome strings:
my_awesome_string
my_awesomestring
I’m trying to create a function that can convert the first underscore to a / if there is a second underscore in the string, but convert it to a - if there is no second underscore.
my/awesome-string
my-awesomestring
Can you help me convert my awesome string?
Another way: