|User: editor -- 2008-05-24 << 153 155 >>|
|Type: Advanced search and replace|
|Search all Advanced search and replace examples|
|Is there a way to automatically convert the currency in a text file to another |
|CNY 1000 |
|USD 142.86 |
|Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.|
|1. ctrl-o open source file |
2. ctrl-h open 'Replace' dialog
in 'Replace' page
* set 'Search for pattern':
* set 'Replace with pattern':
3. click 'Replace', ok!
Note: [\d\.]+ means any numbers.
chars($match,5,-1) means extract XXX from format 'CNY XXX'
calc(char($match,5,-1)/7, ".2f") means divide the number by 7, and output with a format keeping 2 decimal.
|Download Script: scripts/154.rst.zip|
Screenshot 1: Replace_Window
|Is there a way to batch uuencode a lot of files? (58%)|
Is there any way to count how many pure English word in a text file? (58%)
Is there a way to batch rename files with the first line of the file content? (57%)
Is there a way to batch rename files by capitalizing each word? (55%)
Is there any way to keep only the first occurrance of a specified text, and remove/delete the rest? (55%)
Is there any online tool to batch replace text file with regular expression? (54%)
How to calculate the area automatically given a list of radius of a circle? (53%)
How to replace only one occurrence of string in text randomly? (51%)
Check Demo of Advanced search and replace
|currency divide div decimal xxx dec automatically automatic keep automat divide numbers decimal numbers extract numbers from a text file to replace a number with another 2 extract text and numbers divide number decimal number extract numbers|