On 11 January 2013 15:24, erik quanstrom <[email protected]> wrote:
>> # remove outermost pair of braces:  abcd(x+(y-z))efgh  --> abcdx+(y-z)efgh
>>          [ no idea :-( ]
>
> this is made simple since * is "greedy":
>
> Edit s:\((.*)\):\1:g
>

Sure, this (the greediness) basically already stands behind the solution
of N. Bercher above (though it was unnecessarily complicated). The problem with
such solutions is that you must always ensure there is just one
'expression' that
you want to be edited in the dot. Being so, the 'clicking' solution
proposed by B. Fabian
might be easier (but it depends). General solution (which would handle multiple
expressions at once), I think, is beyond simple regexps.

Ruda

Reply via email to