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
445.Advanced search and replace -- How to change all negative numbers to the format of (number)?
User:
editor -- 2010-03-12
<< 444
446 >>
Hits:
320
Type:
Advanced search and replace
Search all
Advanced search and replace
examples
Description:
How to change all negative numbers to the format of (number)?
How to remove "-" and add parenthesis for each negative number?
Input Sample:
1000 136
-233 225
336.4 -227.1
-325.3 507
Output Sample:
1000 136
(233) 225
336.4 (227.1)
(325.3) 507
Answer:
Hint: You need to
Download and install "Replace Pioneer"
on windows platform to finish following steps.
1. ctrl-o open source text file
2. ctrl-h open 'replace' window
* in 'search for pattern' enter:
-([\d\.]+)
* in 'replace with pattern' enter:
($1)
3. click 'Replace', done!
Download Script:
scripts/445.rst.zip
Screenshot 1: Replace_Window
Similar Examples:
How to change all numbers which have format of (number) to -number?
(75%)
How to change all numbers which have format of (number) to -number?
(75%)
How to change all numbers in a text file to the comma separated numbers?
(67%)
How to change each number to an increasing number starting from 8?
(59%)
How to change all the letters in a text file to upper cases?
(58%)
How to convert all numbers from decimal to percentage?
(57%)
How to change all numbers in a text file to 2 decimial places?
(57%)
How to reset all the numbers with format id=NNN in a text file?
(57%)
Check Demo of
Advanced search and replace
Keywords:
parenthesis
nth
numbers
format
how to remove
remove
remov
move
rem
par
replace text with add numbers
remove numbers
change the number for each
remove number
text to numbers
remove all text
add number
number add