Hi
I find this to be extremely useful ability to change case to be very
useful.
I would like to mention that Richard may want to look at matching
patterns as well as case transformations in the excellent BBEdit help.
This is where you identify parts of the find expression to be repeated
in the replace expression. You can apply the case transformation to
that part.
In the help you'll see the part to be matched is put in brackets. Then
in the replace expression you can "match" it with \01 or \02 etc.
depending on which set of brackets you want in the sequence of
brackets in the find expression.
If you want to use the entire matched pattern then you can use the
ampersand:
&
in the replace expression.
When Richard looks into it he'll find that there is a huge flexibility
in that which you want to change case, in fact you can do any case
conversion you like on any characters.
The bits in the help that will be of use are, first "Grep Reference"
in the BBEdit Help menu.
Then "Writing Replacement Patterns"
The matching business is nearly the first thing. The Case
Transformation is second down. Rather handy for Richard :)
Patrick
On 12 Jan 2008, at 16:25, Matthew Fischer wrote:
Sure, in a replace pattern you can use the following modifiers:
\u - Make the next character uppercase
\U - Make all following characters uppercase until reaching another
case specifier (\u, \L, \l ) or \E
\l - Make the next character lowercase
\L - Make all following characters lowercase until reaching another
case specifier (\u, \U, \l ) or \E
\E - End case transformation opened by \U or \L
If you pick "Grep Reference" from the BBEdit help menu and look for
case transformations, you'll find more info.
On Jan 12, 2008, at 10:54 AM, Richard Carr wrote:
I would like to "Replace All" instances of a pattern with the same
text down- (or up-) shifted.
I have set a function key F5 to Change Case, so I can quickly do a
few with Command-g and F5, but I want to do many hundreds. Can I do
this automagically?
(By the way, I've discovered that Command-F5 turns on a very cool
Voiceover feature. That happens when trying to do the above
operations quickly.)
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>