Re: Capitalisation command or macro ?

Greg Edwards <[email protected]>
Newsgroups gmane.editors.nedit.user
Message-ID <[email protected]>
Nedit Comrades,
Thanks for those responses. The one I used was Matthjis and his regex
search/replace below. I should have realised it would be easy there. Nedit
regex is certainly nice, seems to have the best of all the regex packages,
eg. non-greedy matching. I've experienced that before, you battle with grep,
grep -E, some Perl, to achive something, and then Nedit regex has it easy as
pie.

Cheers,
Greg E


On Tue, May 26, 2009 at 4:27 PM, Matthijs van Aalten <
[email protected]> wrote:

> > Nedit comrades,
> > I have to capitalise a pile of text  - massive list of book titles, eg
> > "night of the living dead" goes to 'Night Of The Living Dead". I was sure
> > nedit had this built in but just can't find it. Help appreciated.
>
> I'm not sure if you like a solution like this, but try:
> - Menu => Search => Replace...
> - String to find: <\l+>
>  (so left-pointy-bracket, backslash, lower-case letter L, plus-sign and
> right-pointy-bracket)
> - Replace With: \u&
>  (so backslach, lower-case letter U, ampersand)
> - Toggle-buttons: Regular Expression on, all others off
> - Hit 'Replace all in: Window'...
>
> This should capitalize all first letters of all words in your current
> editing window.
>
> Good luck,
> Matthijs
> --
> NEdit Discuss mailing list - [email protected]
> http://www.nedit.org/mailman/listinfo/discuss
>



-- 
Greg Edwards
mob 0400 102 774
-- 
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.