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@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@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate