Skip to main content
Question

Add space and letter to text in string

  • October 20, 2021
  • 1 reply
  • 41 views

Hi again,

 

I would like to change my string containing "100000,00" to "100 000,00E". In other words, adding a space and an E in the string. I can not seem to find an easy solution for this.

 

Thanks in advance!

1 reply

redgeographics
Celebrity
Forum|alt.badge.img+50

You can use a StringReplacer with a regular expression.

 

Assuming you want to replace 100000 with 100 000 and 200000 with 200 000 and so on you can use (^.00) as your regular expression and \\1 as your replacement text (that's \\1 with a space behind it!)


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings