Skip to main content

Regular Expressions | How to Insert Commas into Numbers

Yoom Customer Service avatar
Written by Yoom Customer Service
Updated this week

📝 Overview

When working with data and using the "replace data" (with regular expressions) feature, you might need to format numbers by adding commas. This is a handy way to improve readability, especially when dealing with large numbers.


🛠️ How to Do It

To add commas to numbers, follow these steps:

  1. Search to Search In: Use the following regular expression

    (?<=\d)(?=(\d{3})+$)

  2. Replacement Text: Simply insert a comma (,) to separate the values.

Once set up, you’ll be able to format numbers with commas easily! 🎉

💡 Tip:

You can also use numbers obtained from the output in place of the string to be replaced.


📚 Related Guides

Related Keywords

regular expressions, commas in numbers, data transformation, regex, format numbers

Did this answer your question?