>  maybe I do not fully follow your example, but wouldn't you instead of:
>
>         time D="${C//\[+([0-9])\]=}"             # rm '[<subscr>]='
>
>  want:
> 
>         time D="${C//\[[0-9]*\]=}"               # rm '[<subscr>]='

this would also find [!asd]. And there are other possibilities.

but that was not my problem / question.

>  your example copies a lot to D and thats what takes time, I guess.

... but only if _extended_ pattern matching is used, see my examples. Why is
extended pattern matching so slow as compared to simple pattern matching.
That's the question.


----------------------------------------------------------------
Gesendet mit Telekom Mail <https://t-online.de/email-kostenlos> - kostenlos und 
sicher für alle!

Reply via email to