[TxMt] Compound regular expressions in snippets

Robin Houston robin.houston at gmail.com
Fri Jul 6 11:38:47 UTC 2007


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



More information about the textmate mailing list