Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

99.Advanced search and replace -- How to convert text with pig latin rules?

User: editor -- 2008-05-14          << 98  100 >>
Hits: 3496
Type: Advanced search and replace   
Search all Advanced search and replace examples
How to convert text with following pig latin rules:
1. If a word begins with a consonant, you move that consonant to the end of the word, and add ¡®ay¡¯ to the end. So, ¡°pig latin¡± becomes ¡°igpay atinlay¡±. This includes the full sound of the beginning of the word, so a word like ¡®should¡¯ becomes ¡®ouldshay¡¯, not ¡®houldsay¡¯ ¡ª the sound of the word is more important than the spelling.
2. If a word begins with a vowel, you add ¡®way¡¯ at the end. So, ¡®ever¡¯ becomes ¡®everway¡¯
Input Sample:
pig latin is an interesting game
Output Sample:
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,       
in 'Replace' page,
1)set 'Search for Pattern':  

2)set 'Replace with Pattern':  

in 'Advanced' page:
set 'run following for each matched unit' to:

3. Click 'Replace', that's ok! 
Download Script:  scripts/

Screenshot 1:  Replace_Window

Screenshot 2:  Replace_Advanced_Window

Similar Examples:
How to convert the text format by user specified rules? (65%)
How to convert the text from decimal to hex in a file? (64%)
How to convert the text from hex to decimal in a file? (64%)
How to convert a text file to specified format? (62%)
How to convert the text from hex format to ascii format? (62%)
Convert a text from binary to hex (59%)
How to replace alt text with string from title tag? (57%)
How to refine multiple text files by specified rules? (56%)

Check Demo of Advanced search and replace
pig latin rules  begins with  pig latin rule  consonant  include  pages  full  else  import  rules  convert text to pig latin  pig latin replace  convert to pig latin  pig latin search replace  pig latin with replace  replace in pig latin  pig latin search for text  convert pig latin to text