Replace Pioneer Home   All Examples   Free Download

 New request --free

41.Advanced search and replace -- Replace first char of each line to upper case

User: sysdemo -- 2007-11-24
Hits: 359
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
Replace first char of each line to upper case
Input Sample:
this is 1st line
this is 2nd line
this is 3rd line
this is 4th line
Output Sample:
This is 1st line
This is 2nd line
This is 3rd line
This is 4th line
Answer:
Hint: You need to Download and install "Replace Pioneer" to finish following steps.
1. ctrl-o open file
2. ctrl-h open replace dialog:
1) Replace unit=chars
2) Replace scope=line
3) Search for pattern:

4) Unit number filter:

5) Replace with pattern:

3. Click 'Replace'
Download Script:
scripts/41.rst
Check Demo of Advanced search and replace