Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

270.Advanced search and replace -- How to change all numbers in a text file to the comma separated numbers?

User: editor -- 2008-09-21
Hits: 243
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to change all numbers in a text file to the comma separated numbers?
Input Sample:
The first number is 1234567, the second number is 333.
...
Output Sample:
The first number is 1,234,567, the second number is 333.
...
Answer:
Hint: You need to Download and install "Replace Pioneer" to finish following steps.
1. ctrl-o open text file
2. ctrl-h open "Replace" dialog
* set "Search for pattern" to:

* set "Replace with pattern" to:

3. Click "Replace", done!

Note: require Replace Pioneer version 2.2 and above.
Download Script:  scripts/270.rst.zip

Similar Examples:
How to change all numbers in a text file to 2 decimial places? (76%)
How to change all the letters in a text file to upper cases? (70%)
How to replace all the numbers in a text file to the square value? (68%)
How to extract all numbers in a text file, and provide a summary of number at the end? (67%)
How to removing all leading zeros in a text file containing many numbers? (63%)
How to change all negative numbers to the format of (number)? (61%)
How to reverse a text file by characters? (61%)
How to change the number part of many filenames by adding some specified value? (59%)

Check Demo of Advanced search and replace