Hi All,
I'm trying to think of a way to write a function to remove every second "`" character from a string, I have nothing coded right now as I'm already stuck as to actually go about it.
for example, I have a string like..
(the string length isn't static and can have various amounts of inputs, but the pattern will always be the same)
I'd like the string from the function to return
as you can see every second ` character is removed.
any ideas would be great thanks.
I'm trying to think of a way to write a function to remove every second "`" character from a string, I have nothing coded right now as I'm already stuck as to actually go about it.
for example, I have a string like..
Code:
str="`14`red¬file`55`green¬folder`22`lime¬folder`11`gray¬file";
(the string length isn't static and can have various amounts of inputs, but the pattern will always be the same)
I'd like the string from the function to return
Code:
"`14red¬file`55green¬folder`22lime¬folder`11gray¬file";
as you can see every second ` character is removed.
any ideas would be great thanks.