I'm trying to do a transform on a string and so far have had no luck.
I have a string that is divided by a special character and I'd like to replace that special character with a hyphen. For example, given "aýbýcýd", I'd like to return "a-b-c-d".
I tried using regular expressions and "replace in string", but the number of occurrences of the special character is variable. I also tried "execute a process", using a python script to do the substitutions, but there are over 30,000 rows in my file and it's taking too long to execute.
Anyone have any ideas? Many thanks!
I have a string that is divided by a special character and I'd like to replace that special character with a hyphen. For example, given "aýbýcýd", I'd like to return "a-b-c-d".
I tried using regular expressions and "replace in string", but the number of occurrences of the special character is variable. I also tried "execute a process", using a python script to do the substitutions, but there are over 30,000 rows in my file and it's taking too long to execute.
Anyone have any ideas? Many thanks!