[TxMt] Compound regular expressions in snippets

Jordan Harper jordan.harper at cimex.com
Fri Jul 6 11:43:38 UTC 2007


You're a genius, Robin!

Many thanks.

J

On Jul 6, 2007, at 12:38 PM, Robin Houston wrote:

> On 7/6/07, Jordan Harper <jordan.harper at cimex.com> wrote:
>> I'm having a bit of trouble trying to work out if it's possible to  
>> have
>> compound regular expressions in a snippet.
>
> In general, no. But in your particular example, there is a trick  
> that works:
>
>  ${1/([^ ])|( )/\L$1(?2:-)/g}
>
> Robin
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070706/00e7d7bc/attachment.html>


More information about the textmate mailing list