You are viewing limited content. For full access, please sign in.

Question

Question

Substitute from ";;" to ";-;"

asked on December 4, 2019

Hi all

 

Using Workflow, I'm trying to substitute all ";;" by ";-;" but my result is strange

 When I'm trying the function, the result is not what I want.

Result

 

This should be "Check ;-; value" and not "Check , , value".

 

What's wrong?

Thanks in advance for your help.

 

Regards

 

0 0

Answer

SELECTED ANSWER
replied on December 5, 2019

Hi all,

 

It's ok! I found myself.

I need to add a substitute inside the substitue.

 

Thanks a lot.

 

 

0 0

Replies

replied on December 4, 2019

Hi Olivier,

I think it should actually work fine but the test is misinterpreting the semicolons (;) as separators. For me, when I test with type String and check the Exact Input box, this works. 

You can be extra sure that it does work by running a test workflow with a hardcoded token and tracking the tokens as they are produced by the substitution in the Token Calculator.

2 0
replied on December 5, 2019

Hi Karina,

 

Thanks for your help.

You right, it's actually work but not pretty good.

If my variable = "test;;test"

the result is = "test;-;test"

 

but if my variable = "test;;;test"

the result is = "test;-;;test"

This should be = "test;-;-;test"

 

That's why I'm trying to test the formula but actually, I can't.

0 0
replied on December 5, 2019

I tried with this expression "aa" => "a-a"

Please see the result.

0 0
replied on December 4, 2019

What activity are you using for the substitution?

0 0
replied on December 5, 2019

Hi Jason,

 

Thanks for your help.

I'm using Token Calculator.

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.