[TxMt] Re: Mirrors in interpolated shell code in snippets
Benjamin Hawkes-Lewis
bhawkeslewis at googlemail.com
Thu Jul 2 15:24:35 UTC 2009
On 2/7/09 14:57, Benjamin Hawkes-Lewis wrote:
> (I'm trying to write a transformation that will first convert a human
> phrase to CamelCase /then/ lowercase the first character to generate a
> StudlyCaps version of the phrase.)
As a sidenote, I've found I can do this with conditional inserts:
${1/^(\w)(\w*)|\W*(\w)(\w*)\W*/(?1:\l$1$2)\u$3$4/g}
--
Benjamin Hawkes-Lewis
More information about the textmate
mailing list