Replace Pioneer Home   All Examples   Free Download

 New request --free  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: 1695
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:

* in 'replace with pattern' enter:

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 all lines to columns in a text? (60%)
How to change each number to an increasing number starting from 8? (59%)
How to keep all lines with 6 letters or numbers and at most 2 letter? (58%)
How to change all the letters in a text file to upper cases? (58%)
How to find missing numbers from a list of numbers? (57%)

Check Demo of Advanced search and replace
Keywords:
negative number  parenthesis  parenth  nth  pare  numbers  format  how to remove  remove  remov  remove parenthesis  remove all numbers  remove text numbers  replace text with add numbers  remove numbers  add numbers  change the number for each  remove all number