| User: editor -- 2010-03-12 |
| Hits: 87 |
| 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" 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 |
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 the letters in a text file to upper cases? (58%) 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%) How to generate a list of number base on given formula such as 3n+1? (54%) How to extract all telephone numbers from a text file? (54%) |
Check Demo of Advanced search and replace |