Re: feature request: ${ regex s expander, and multiple expandrs inside one

2021-02-08 Thread felix
On Fri, Feb 05, 2021 at 09:29:49PM +0100, Alex fxmbsw7 Ratchev wrote: > .. > > var=mynewfoo > printf ${var~~n[^f]+} > -> > myfoo > > and also multiple expanders inside one statement would greatly speed up > processment and also fulfill old greatly coding wanting possibilities This could be

Re: feature request: ${ regex s expander, and multiple expandrs inside one

2021-02-05 Thread Alex fxmbsw7 Ratchev
i actually hope for also replacement code that can use regex grouped data On Fri, Feb 5, 2021 at 10:13 PM Chet Ramey wrote: > On 2/5/21 3:29 PM, Alex fxmbsw7 Ratchev wrote: > > .. > > > > var=mynewfoo > > printf ${var~~n[^f]+} > > -> > > myfoo > > So you want to remove portions of a vari

Re: feature request: ${ regex s expander, and multiple expandrs inside one

2021-02-05 Thread Chet Ramey
On 2/5/21 3:29 PM, Alex fxmbsw7 Ratchev wrote: .. var=mynewfoo printf ${var~~n[^f]+} -> myfoo So you want to remove portions of a variable's value that match a regex? and also multiple expanders inside one statement would greatly speed up processment and also fulfill old greatly codi

feature request: ${ regex s expander, and multiple expandrs inside one

2021-02-05 Thread Alex fxmbsw7 Ratchev
.. var=mynewfoo printf ${var~~n[^f]+} -> myfoo and also multiple expanders inside one statement would greatly speed up processment and also fulfill old greatly coding wanting possibilities thanks