Replace Pioneer Home
All Examples
Free Download
all
Advanced search and replace
Replace text in multiple files
Regular expression replace
Batch file rename
Batch download
Text file parser
Text file splitter
Html text generator
Search replace binary
Random word generator
Count and statistics
Character encoding
Bin Hex Oct Dec converter
Text generator
Text sort
Text merge
Text data calculation
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
<< 269
271 >>
Hits:
3488
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"
on windows platform to finish following steps.
1. ctrl-o open text file
2. ctrl-h open "Replace" dialog
* set "Search for pattern" to:
\d+
* set "Replace with pattern" to:
replace($match,'(.)(?=(...)+$)','\1,')
3. Click "Replace", done!
Note: require Replace Pioneer version 2.2 and above.
Download Script:
scripts/270.rst.zip
Screenshot 1: Replace_Window
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 change the numbering format in a text file to a new format?
(65%)
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%)
Check Demo of
Advanced search and replace
Keywords:
how to change all numbers
separate
all numbers
comma
version
rsi
para
numbers
replace pioneer
replace pionee
change all numbers in text file
and replace numbers in text file
search numbers
replace comma
with numbers
replace numbers in text
text to numbers
replace numbers