Hi All,
The whole question is in the title ;-) : What is the syntax to be used in Find/Replace dialog to move text to Upper- or Lower- case? there was such a feature in BBEdit, but could not find it in TextMate.
Find : <.+?> Replace : lowercase($0)
Thanks,
On 15. Oct 2004, at 14:28, José Campos wrote:
The whole question is in the title ;-) : What is the syntax to be
used in Find/Replace dialog to move text to Upper- or Lower- case? there was such a feature in BBEdit, but could not find it in TextMate.
Currently there is no such feature, but I can of course add it.
What are the suggestions for syntax?
Kind regards Allan
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 <>.
Allan Odgaard allan@macromates.com wrote:
Currently there is no such feature, but I can of course add it.
It would be great!
What are the suggestions for syntax?
\u$n : uppercase all characters in $n \U$n : Uppercase first character in $n \l$n : lowercase all characters in $n \L$n : Lowercase first character in $n
Unless someone has a better idea. The most important is that the features are well-documented!
Have a nice day,