Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Character substitution

$
0
0
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!

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>