Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

230.Advanced search and replace -- How to reverse all cases of letters in a text file?

User: editor -- 2008-07-21          << 229  231 >>
Hits: 2742
Type: Advanced search and replace   
Search all Advanced search and replace examples
How to reverse all cases of letters in a text file?
Input Sample:
This is JUST a test.
Output Sample:
tHIS IS just A TEST.
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source file. 
2. ctrl-h open 'Replace' dialog: 
set 'Replace with pattern' to: 
3. Click 'Replace', done! 
function replace($match,'A-Za-z','a-zA-Z',2) will make a mapping from A-Z to a-z, and a-z to A-Z, the last parameter "2" means make letter-to-letter mapping instead of str replace.

Screenshot 1:  Replace_Window

Similar Examples:
How to reverse the order of all the lines in a text file? (76%)
How to remove/delete all blank lines in a text file? (71%)
How to remove partially duplicated lines in a text file? (70%)
How to shuffle all the lines in a text file? (70%)
How to remove/delete all English characters/letters in a text file? (70%)
How to remove/delete all symbols in a text file? (69%)
How to extract all upper cases words from a text file? (68%)
How to extract/parse all upper cases Acronyms from a text file? (68%)

Check Demo of Advanced search and replace
cases of letters  logs  parameter  mapping  reverse  tea  letters  letter  function replace  function  reverse letters text file  reverse all the letters means  search text file in reverse  search replace mapping  replace in reverse text  reverse text  mapping file  replace letters