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
1465.Text data calculation -- How to calculate each number in a line with different formula?
User:
TTT -- 2022-03-31
<< 1464
1466 >>
Hits:
1592
Type:
Text data calculation
Search all
Text data calculation
examples
Description:
How to calculate multiple data?
first +1
second+2
third-3
forth-4
Input Sample:
data:“12.3% 3.68% 0.41% 96.1”
set:“13.436% 79.13%”
state:“4.63% 3.412% 45.14536% 9.63%”
Output Sample:
data:“12.3% 3.68% 0.41% 96.1”
set:“13.436% 79.13%”
state:“5.63% 5.412% 42.14536% 5.63%”
Answer:
Hint: You need to
Download and install "Replace Pioneer"
on windows platform to finish following steps.
1. ctrl-o open text file
2. ctrl-h open 'replace' dialog
* set 'replace unit' to 'Chars', set 'Replace Scope' to
'Line'
* set 'search for pattern' to:
[\d\.]+
* set 'replace with pattern' to:
sprintf("%s", $match + (1,2,-3,-4)[$word_no-1])
* set 'if' to:
matches(lines(page(), $line_no), 'state')
3. click 'replace', done.
Screenshot 1: Replace_Window
Similar Examples:
How to replace different lines with different rule?
(63%)
How to decorate each of marching number with specified format?
(61%)
How to calculate the average of numbers of one column?
(61%)
How to randomly deletes x number of lines from text files?
(60%)
How to change each line of data to the specified format?
(60%)
How to change the number in each line to specified order in a text file?
(60%)
How to calculate the summaries of every line in a txt file?
(60%)
How to multiply numbers in each line after a certain comma?
(59%)
Check Demo of
Text data calculation
Keywords:
third
matches
calculate
calculation
calcu
calculat
second
replace scope
scope
different
number matches
calculate lines
replace with multiple data
search calculate replace
search replace calculate
each line to replace different
calculate text data
different number