Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

592.Advanced search and replace -- How to replace digit "d" that appeared "n" times with format of d(n)?

User: editor -- 2010-08-18          << 591  593 >>
Hits: 1957
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to replace digit "d" that appeared "n" times with format of d(n)?
Input Sample:
000000000333333333 
1111111222222255555555 
777779999999999999
Output Sample:
0(9)3(9) 
1(7)2(7)5(8) 
7(5)9(13)
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 window 
* in 'search for pattern', enter: 
 
* in 'replace with pattern', enter: 
 
3. click 'replace', done.

Screenshot 1:  Replace_Window


Similar Examples:
How to remove all lines in file b.txt that appearred in a.txt? (51%)
How to replace a character based on its position in line? (50%)
How to replace the all word "test" with the first word in same line? (50%)
How to remove everything that appears before the "->" in each line? (50%)
How to replace the first 3 characters of each line to fixed characters and add 'a' at the end? (50%)
How to replace strings in hundreds of html files in one action? (49%)
How to remove all blank lines and lines that started with Name: or Addr:? (49%)
How to change all negative numbers to the format of (number)? (49%)

Check Demo of Advanced search and replace
Keywords:
times  replace digit  digit  dig  digit d  time  count  format  app  enter  replace times  search and replace open source  search and replace text  search pattern  replace text pattern  text pattern  text search  and replace text