Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

353.Advanced search and replace -- How to replace the second character of every line to 4 in a text file?

User: jiang -- 2009-09-23          << 352  354 >>
Hits: 522
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to replace the second character of every line to 4 in a text file?
Input Sample:
31313252321232
35343212301512
36373282324212
Output Sample:
34313252321232
34343212301512
34373282324212
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. press ctrl-o open source text file
2. press ctrl-h open replace dialog
* select "replace unit" to "Chars"
* select "replace scope" to "Line"
* set "unit number filter" to 
* set "replace with pattern" to 
3. click "Replace", done!

Note: if you want to change other column(like 14), you can set unit number to other value(like 14).
Download Script:  scripts/353.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to replace the second character of every line to 4 in multiple files? (91%)
How to remove the first 10 characters of each line in text file? (71%)
How to calculate the summaries of every line in a txt file? (69%)
How to delete duplicate numbers in every line in text file? (67%)
How to add a page number after every 40 lines in a text file? (65%)
How to replace a number with another number in same text file? (65%)
How to insert a blank line after every 5 lines in a text file? (65%)
How to reverse the order of characters in each line of text? (65%)

Check Demo of Advanced search and replace
Keywords:
second  every line  unit number filter  number filter  every  replace scope  scope  filter  value  unit number  replace second character  replace every second  every character  scope filter  second line  replace second text  text pattern filter  filter number