On Nov 29, 2006, at 8:23 AM, Ken Tozier wrote:
Is it possible to find a pattern using grep and apply a "lowercase"
or "uppercase" function to it?
For example, uppercase words in the above sentence that start with
the letter "f"
find: f[^ ]+
replace: uppercase(\1)
In a replacement pattern \u will make the next character uppercase
and \U will make everything uppercase until it's turned off (\l and
\L work the same way for lowercase).
So in your example:
Find: (f[^ ]+)
Replace: \U\1
Would make the words uppercase.
--
------------------------------------------------------------------
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]>