Manipulating a String Help

Hi Guys,

Hoping for some help/advice around manipulating/formatting a string correctly.

My String is “Get 10% Back Win when you stake £/€200 or more until midnight Sunday across all Games”

My aim is to reformat the Currency, and basically change the “£/€200” part into “#amount=200GBP#”.

So the final string output should read;
“Get 10% Back Win when you stake #amount=200GBP# or more until midnight Sunday across all Games”

Please be mindful that this string would change, but I will use an IF condition as to whether the string contains “£/€” before changing the string output accordingly. The string/numbers involved can vary.

Any help would be great!

1 Like

Do you mean the string would change in terms of amount or the complete text along with amount?

Hi @Ashish_Verma The complete text and amount will both vary.

replace.xaml (4.6 KB)

Try this…! @Kyleb91

3 Likes

@kadiravan_kalidoss where can I learn regex completely?

Brilliant, thanks very much!

https://regexone.com/

complete all the exercises … all the best…! @Ashish_Verma

Thank you :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.