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
416.Advanced search and replace -- How to add all numbers by 30 after symbol ":" in each line ?
User:
editor -- 2010-02-07
<< 415
417 >>
Hits:
311
Type:
Advanced search and replace
Search all
Advanced search and replace
examples
Description:
How to add all numbers by 30 after symbol ":" in each line ?
Input Sample:
Advaned Search and Replace: 3
Batch file rename: 8
Batch download: 15
Search replace binary: 22
Output Sample:
Advaned Search and Replace: 33
Batch file rename: 38
Batch download: 45
Search replace binary: 52
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' dialog
* in 'search for pattern', enter:
:\s*(\d+)
* in 'replace with pattern', enter:
: calc($1+30)
3. click 'Replace', done!
Download Script:
scripts/416.rst.zip
Screenshot 1: Replace_Window
Similar Examples:
How to add a line number at the beginning of each line?
(65%)
How to delete all text after the second comma in each line?
(60%)
How to sort all the numbers in each line randomly?
(59%)
How to add a space after the 15 character of each line?
(59%)
How to add a page number after every 40 lines in a text file?
(58%)
How to add a <BR> at the end of each line?
(58%)
How to add a number and remove "new line" for each segment separated by "@"?
(57%)
How to add a komma (,) after first and second words in each line?
(57%)
Check Demo of
Advanced search and replace
Keywords:
symbol
sym
after
numbers
calc
cal
each line
number
ber
num
enter after each line
replace text with add numbers
replace all text after
after each line
symbol pattern
after text
replace after
add text each line