[TextMate] [REGEX] move to Uppercase/Lowercase

Ollivier Robert roberto+textmate at keltia.freenix.fr
Fri Oct 15 12:48:44 UTC 2004


According to Allan Odgaard:
> What are the suggestions for syntax?

I'd suggest do ing it the Perl way:

           \l          lowercase next char (think vi)
           \u          uppercase next char (think vi)
           \L          lowercase till \E (think vi)
           \U          uppercase till \E (think vi)
           \E          end case modification (think vi)                         

Find: <(BODY|TABLE)>
Replace: <\L$1\E>

will lowercase all BODY/TABLE words inside <>.
-- 
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto at keltia.freenix.fr
Darwin snuadh.freenix.org Kernel Version 7.5.0: Wed May 12 16:58:24 PDT 2004



More information about the textmate mailing list