Skip to main content
Nintex Community Menu Bar

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

  • Jan 7, 2022 3:31 AM UTC
  • 2 replies
  • 196 views
  • Translate All

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

Forum|alt.badge.img+11
  • Contributor
  • Jan 7, 2022 7:38 PM UTC

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

 

 

 

Translate

  • Author
  • Jan 10, 2022 5:31 PM UTC

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

Best Regards,
Smita

Translate