> This is probably impossible in sed. It's a well-known theorem that you 
> can't do parenethesis matching with (standard) regular expressions. You 

just for fun ... :)
you cant do parenthesis matching with standard regular expressions, but sed
knows much more things (like branching) and it can be proved its turing 
complete.
that of course does not change anything on the fact its practically unusable for
task like par. matching.
pavel

Reply via email to