Capitalisation command or macro ?
Greg Edwards
gedwards2 at gmail.com
Wed May 27 00:36:16 CEST 2009
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 <
matthijs.van.aalten at nxp.com> 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 - Discuss at nedit.org
> http://www.nedit.org/mailman/listinfo/discuss
>
--
Greg Edwards
mob 0400 102 774
More information about the Discuss
mailing list