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
678.Advanced search and replace -- How to replace the digits 5,6,7 with asterisk for all 11-digits numbers?
User:
editor -- 2010-12-15
<< 677
679 >>
Hits:
2665
Type:
Advanced search and replace
Search all
Advanced search and replace
examples
Description:
How to replace the digits 5,6,7 with asterisk for all 11-digits numbers?
There are many numbers with 11 digits, how to mask the 3 middle digits with "*"?
Input Sample:
22344289342
27840856105
84722473784
Output Sample:
2234***9342
2784***6105
8472***3784
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:
\b(\d\d\d\d)\d\d\d(\d\d\d\d)\b
* in 'replace with pattern', enter:
\1***\2
3. click 'Replace', done!
Screenshot 1: Replace_Window
Similar Examples:
How to rename files by removing all leading numbers?
(59%)
How to randomly replace one line from line 7 to line 10 with the same numbers of -?
(50%)
How to replace the contents between div tags with increasing number?
(50%)
How to batch remove/delete the 5,6,7 characters of many filenames?
(50%)
How to replace all digits into a random digit, but keep other letters in a text file?
(50%)
How to replace a number with another number in same text file?
(49%)
How to remove the timestamps at the start of line in lrc files?
(49%)
How to rename many files to the format of file.number.ext?
(49%)
Check Demo of
Advanced search and replace
Keywords:
ddd
asterisk
mask
digits
middle
123
digit
dig
any number
numbers
replace digits asterisk
replace digits in asterisk
asterisk how to replace digits
replace all digits
search for digits
how to replace all the numbers
all numbers
search numbers