How to add euro symbol to string

Hi ,

I would like to add the euro symbol to the following string before the first number (8,946)
BJ Highstake Bet Counts 8,946 €6,710

So i want a new text will be like that : BJ Highstake Bet Counts €8,946 €6,710

How can i do it dynamically ?

@m.fokas
welcome to the forum

regex replace can help

grafik

Assign Activity:
strText = System.Text.RegularExpressions.Regex.Replace(strText, " (\d+)", " €$1")

strText is a string Variable holding the text which will be used for the replacment
if there is already a € then the statement will not add a second one

Its working :slight_smile: Thanks :slight_smile:

perfect. May we ask you to close the topic. Thanks:

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