How to add the thousands separator to an integer in Nintex Workflow?

  • 7 January 2022
  • 2 replies
  • 43 views

Hello,
I have an integer and I want to add the thousands separator to it. How do I do it in Nintex Workflow? Please help!!!

 

Thanks and regards,
Smita


2 replies

Userlevel 4
Badge +10

If you use the "Apply a regular expression" action with the Replace operation, you can use the following pattern and replacement text to get a text variable with commas separators.


 


Pattern: ([0-9]{1,3})(?=([0-9]{3})+(?![0-9]))


Replacement text: $1,


 



 


The above configuration results in this value for the test variable: 123,456,789


 


 


Thank you so much!! My issue was resolved!!


Best Regards,
Smita

Reply