Question

String replace with multiple value result.

  • 24 November 2022
  • 6 replies
  • 43 views

Badge +7

Hi,

I have a scenario with a random string test;

"Häradålderön" which my goal is to se the result to "Haradalderon".

Basically replace any [ä, å, ö] with [a, a, o] letter.

 

I guess using regular expression could do it, but I find it tricky since it might be three sequences to search for ä, å, ö. Any ideas appreciated!


6 replies

Userlevel 4

Did you have a look at the StringDiacriticRemover from the Hub? I believe it should do what you're looking for: https://hub.safe.com/publishers/safe-lab/transformers/stringdiacriticremover

Userlevel 1
Badge +10

Have you looked at the StringPairReplacer?

image

Badge +7

Did you have a look at the StringDiacriticRemover from the Hub? I believe it should do what you're looking for: https://hub.safe.com/publishers/safe-lab/transformers/stringdiacriticremover

Haven't looked into this yet, thanks for the suggestion!

Badge +7

Have you looked at the StringPairReplacer?

image

Great! This was a very easy solution, thanks!

Badge

https://hub.safe.com/publishers/spatial-kat/templates/stringreplacer_multiple

Badge +7

@pradip​ , thanks for the link!

Reply