Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1193.Text data calculation -- How to multiply numeric values after specified symbol in each line?

User: Testing -- 2014-04-13          << 1192  1194 >>
Hits: 3156
Type: Text data calculation   
Search all Text data calculation examples
Description:
How to multiply numeric values after specified symbol in each line? 
Multiple every number like 739 277 after "}m" in each line. 
But do not multiple number like 805 inside of &H3A805F&.
Input Sample:
,,0,0,0,,{\bord1\blur0.5\fs33\frz347.7\move(870.444,308.889,720.595,301.217,29,3992)} Text{\c&H0614E0&\1a&H00&}Here 
,,0,0,0,,{\an7\move(0,0,-149.849,-7.672,29,3992)\blur1\fscx100\fscy100\p1}m 739 277 b 680 257 956 316 935 322 
,,0,0,0,,{\pos(993,154.5)\fs49.5\frz23.27\4c&H7CB5C3&}R{\1c&H388A6E&}e{\1c&H38896C&}c{\1c&H39876A&}o{\1c&H398567&}m{\1c&H3A8363&}m{\1c&H3A805F&}e 
Output Sample:
,,0,0,0,,{\bord1\blur0.5\fs33\frz347.7\move(870.444,308.889,720.595,301.217,29,3992)} Text{\c&H0614E0&\1a&H00&}Here 
,,0,0,0,,{\an7\move(0,0,-149.849,-7.672,29,3992)\blur1\fscx100\fscy100\p1}m 1108.5 415.5 b 1020 385.5 1434 474 1402.5 483 
,,0,0,0,,{\pos(993,154.5)\fs49.5\frz23.27\4c&H7CB5C3&}R{\1c&H388A6E&}e{\1c&H38896C&}c{\1c&H39876A&}o{\1c&H398567&}m{\1c&H3A8363&}m{\1c&H3A805F&}e
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' dialogue 
* set 'search for pattern' to: 
 
* set 'replace with pattern' to: 
 
3. click 'replace', done. 
4. ctrl-s save to file. 
 
Hint: 
Here we use '\b([\d\.]+)\b' to match only numbers that has boundary before and after it.

Screenshot 1:  Replace_Window


Similar Examples:
How to count the number of specified part in each line? (66%)
How to add all numbers by 30 after symbol ":" in each line ? (65%)
How to batch replace files with specified format in each line? (63%)
How to multiply numeric values within defined criteria in given text? (61%)
How to delete all text after the second comma in each line? (61%)
How to remove everything after the second specified keywords in each line? (60%)
How to remove all hyphens after the first tab in each line? (57%)
How to sort the text by the number of specific word in each line? (57%)

Check Demo of Text data calculation
Keywords:
boundary  only numbers  multiply  before and after  inside  symbol  sym  mer  calculation  calcu  numbers line only  only line with numbers  multiply every number text  multiply every number in text file  search and replace numbers multiply  multiply numbers  multiply numbers in text file  multiply line