Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1006.Regular expression replace -- How to insert a space between the lower case and upper case letter?

User: Paul Maguire -- 2012-09-17          << 1005  1007 >>
Hits: 1917
Type: Regular expression replace   
Search all Regular expression replace examples
Description:
I have a .txt file with hundreds of lines, each line contains a name like NewYorkNewYorkUSA. I need to change the text to appear as "New York New York USA"

Is there a way to do this please. Also is there a way to save this procedure to reuse it on a daily basis? Many thanks
Input Sample:
NewYorkNewYorkUSA
LondonUK
HappyBirthday
Output Sample:
New York New York USA
London UK
Happy Birthday

Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file
2. ctrl-h open 'replace' dialogue
* set 'search for pattern' to:

* set 'replace with pattern' to:

3. click 'replace', done.
4. ctrl-s save to file.
Note: after replace operation, you can select the operation record in the list in the middle of screen, and select "Replace->Save to script" menu to save as yourscript.rst, you can select "Replace->Replace by script" to reuse it next time.

Screenshot 1:  Replace_Window


Similar Examples:
How to insert a space between every 80 characters? (71%)
How to insert a space or underscore between every 2 words in filenames? (58%)
How to generate random passwords with 10 bytes of upper case letters? (57%)
How to insert lines between sentences with specified order? (55%)
How do I remove space between char? (51%)
How to insert a word or phrase to the begining of each line? (51%)
How do I insert different pieces of text between successive paragraphs? (50%)
How to count and sort the frequency of all words appeared in many text files? (50%)

Check Demo of Regular expression replace
Keywords:
screen  eus  insert a space  lower case  upper case letter  middle  upper  upper case  replace by script  record  insert space after each letter  insert space after each  replace text in middle of file name  insert space line  upper case and lower case  change file name case upper  insert space in text file  insert space text file