Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

239.Random word generator -- How to replace all digits into a random digit, but keep other letters in a text file?

User: editor -- 2008-08-02          << 238  240 >>
Hits: 3393
Type: Random word generator   
Search all Random word generator examples
Description:
How to replace all digits into a random digit, but keep other letters in a text file?
Input Sample:
This is mobile no 842-037-022 
This is another mobile no 336-222-220
Output Sample:
This is mobile no 916-825-204 
This is another mobile no 171-528-930
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' dialog. 
* set "Search for pattern" to: 
 
* set "Replace with pattern" to: 
 
3. Click "Replace", done! 
Note: rand(10) will generate a value between 0 to 10, int will truncate the value and keep integer part.
Download Script:  scripts/239.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to replace a number with another number in same text file? (59%)
How to replace some text with a random line from another file? (58%)
How to replace specific spaces into comma in each line of text file? (58%)
How to remove/delete all English characters/letters in a text file? (58%)
How to replace the content of XML with a list of words from text file? (56%)
How to extract all words that has any letter doubled in a text file? (56%)
How to reverse all cases of letters in a text file? (56%)
How to remove all path information for multiple http addresses in text file? (55%)

Check Demo of Random word generator
Keywords:
integer  truncate  replace all digits  digits  random word generator  letters  random word gen  word generator  ord generator  random word  replace digits with letters generator  replace digits with random digits  random digit and letters generator  replace random letters  random digit generator  random letters  random text digit  keep letters