Page 1 of 1

First character of each line upper case

Posted: Tue Feb 12, 2008 2:31 am
by Fiorellino
Hi together!

Could anybody tell me how to make TextPad to change the first character of every line in upper case?

Best,
Fiorellino

Posted: Tue Feb 12, 2008 3:47 am
by ak47wong
You can do a replace operation with these parameters:

Find what: ^\(.\)
Replace with: \u\1

Make sure "Regular expression" is ticked in the Replace dialog.

If you are using POSIX regular expression syntax, change the find string to: ^(.)

Andrew

Posted: Tue Feb 12, 2008 7:15 am
by ACRobin
Another method without regular expressions:

Highlight the text (Edit + Select All).
Right click or use Edit menu.

"Change Case" and select tye option you want - "Capitalise" or "Sentence Case"

Posted: Wed Feb 13, 2008 3:57 am
by Fiorellino
Many thanks!!!