On 20 Feb 2009, at 14:07, Ian Alexander Wood wrote: > [...] > <fieldset id="${6:${3/[[:alpha:]]+|( )/(?3:_:\L$0)/g}}" ${4:class="$ > {5:}"}> Here I think you want: ${3/[[:alpha:]]+|( )/(?1:_:\L$0)/g} The capture registers are local for the replacement, not related to the placeholder enumeration.