Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

983.Advanced search and replace -- How to repeat each line multiple times with number increased/decreased?

User: comperssni -- 2012-07-30          << 982  984 >>
Hits: 1277
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to repeat each line multiple times(For example,5 times);

At the same time,find 4 or more continuous digits in them,
increase by ten 5 times,and decrease the digit by ten 5 times.

Thanks Lot
Regard
Input Sample:
http://domain1.com/5000
http://domain2.com/22000
http://domain3.com/132000
http://domain4.com/?f=11&t=4043
http://domain5.com/32500 
Output Sample:
http://domain1.com/4900
http://domain1.com/4800
http://domain1.com/4700
http://domain1.com/4600
http://domain1.com/4500

http://domain1.com/5010
http://domain1.com/5020
http://domain1.com/5030
http://domain1.com/5040
http://domain1.com/5050


http://domain2.com/21090
http://domain2.com/22080
http://domain2.com/22070
http://domain2.com/22060
http://domain2.com/22050

http://domain2.com/22010
http://domain2.com/22020
http://domain2.com/22030
http://domain2.com/22040
http://domain2.com
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 'replace unit' to 'Line'
* set 'search for pattern' to:

* set 'replace with pattern' to:

3. click 'replace', done.
4. ctrl-s save to result file.

Screenshot 1:  Replace_Window


Similar Examples:
How to extract and join text from multiple files with user defined format? (60%)
How to replace strings in multiple text files with an increasing id start from 1? (59%)
How to remove duplicate lines in multiple files in different sub-folders? (59%)
How to remove the last 3 lines of multiple text files all at once? (59%)
How to generate a list of web pages with 2 numbers increased in sequence? (58%)
How to replace strings in multiple files with a global  increasing ID? (58%)
How to put each line of keywords into multiple files with random occurrence? (57%)
How to sort each line of text by the order of reversed line? (56%)

Check Demo of Advanced search and replace
Keywords:
regard  continuous  digits  increase  repeat  times  increas  dec  digit  dig  search for digits  repeat line  repeat text  replace times  search same file  replace digit  more replace  same file