Since the purpose of the modifier \u is to 'make the next
character uppercase', you must place this modifier immediately
before the character you want to transform.
So, for example, if you use this search pattern:
Find: (:\s*)(\w)
to match a literal colon : followed by zero or more _whitespace
characters \s* which are all contained within a _subpattern_ (
) and followed by another subpattern ( ) containing a word
character \w you can then write this replace pattern:
Replace: \1\u\2
which inserts the contents of the first subpattern \1 followed
by the modifier \u to capitalize the next character which is the
word character contained in the second subpattern \2.
NB: If you don't include the subpattern specifiers in your
replace pattern
then TextWrangler will replace whatever text they matched
with nothing,
which is useful if you want to delete that text, but not
so much if
you're trying to transform it. :-)
So, please give this a try and I think you may find it useful.
[PS: For complete details about using TextWrangler's grep
capabilities, including examples, please see Chapter 8 of the
included PDF manual, which you can access at any time via Help
-> User Manual.]
Regards,
Patrick Woolsey
==
Bare Bones Software, Inc. <
http://www.barebones.com/>