« Return to Thread: Mirrors in interpolated shell code in snippets

Re: Mirrors in interpolated shell code in snippets

by bhawkeslewis :: Rate this Message:

Reply to Author | View in Thread

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

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate

 « Return to Thread: Mirrors in interpolated shell code in snippets