[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with upcasing words first char
From: |
Xah Lee |
Subject: |
Re: Help with upcasing words first char |
Date: |
Sat, 22 Aug 2009 11:15:18 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Aug 22, 8:46 am, Harry Putnam <rea...@newsguy.com> wrote:
> I need to do a pile of editing that involves:
>
> Removing a space between words and upcasing the first letter of the
> next word like:
>
> Some example
> to
> SomeExample
>
> I went thru M-x apropos <RET> <case> <RET>
>
> But didn't find a likely candidate ... or at least none appeared to be
> the right thing for what I want.
>
> So far I've been
>
> Ctrl <right arrow> To get to the space between words
> Ctrl-d Ctrl-d To remove the space and the leading lowercase char of
> the next word
>
> Shift <Char> to replace with uppercase
>
> Then back to Ctrl <right arrow>
>
> Where can I save some keyboard strokes?
you can easily do it with query-replace-regexp.
the regexp you should use is:
“ \([[:lower:]]\)”
and the replacement is
“\,(upcase \1)”
some detail here:
• Text Pattern Matching in Emacs
http://xahlee.org/emacs/emacs_regex.html
• Find and Replace with Emacs
http://xahlee.org/emacs/emacs_find_replace.html
Xah
∑ http://xahlee.org/
☄
- Re: Help with upcasing words first char, (continued)
- Re: Help with upcasing words first char, Harry Putnam, 2009/08/24
- Message not available
- Re: Help with upcasing words first char, Pascal J. Bourguignon, 2009/08/24
- Re: Help with upcasing words first char, Harry Putnam, 2009/08/24
- Re: Help with upcasing words first char, Harry Putnam, 2009/08/24
- Message not available
- Re: Help with upcasing words first char, Pascal J. Bourguignon, 2009/08/24
- Re: Help with upcasing words first char, Harry Putnam, 2009/08/25
- Re: Help with upcasing words first char, Harry Putnam, 2009/08/25
- Message not available
- Re: Help with upcasing words first char, Pascal J. Bourguignon, 2009/08/25
- Re: Help with upcasing words first char, Harry Putnam, 2009/08/29
Re: Help with upcasing words first char, Joost Kremers, 2009/08/22
Re: Help with upcasing words first char,
Xah Lee <=