Maybe something like

curl -T 'file{<glob1>1,2,3}' https://upload.example/{<glob2>this,that} -o
'response-#<glob1>-#<glob2>'

Although < > are bash special cars, inside of strings they could be used I
guess.

As regex usually uses (?<namedGroup>) for it's syntax it would be familiar.
Alternatively omitting the <> in the second part where the replacement
happens would also be good for readability, but would make it probably
impossible to know when the named group ends and the string continues.



On Wed, 22 Apr 2026, 10:00 Daniel Stenberg, <[email protected]> wrote:

> On Wed, 22 Apr 2026, Bastian Jesuiter wrote:
>
> > Would something more explicit, like something close or similar to regex
> > named groups possible to circumvent such a confusion?
>
> How do you envision a command line to look like if that would be used?
>
> --
>
>   / daniel.haxx.se || https://rock-solid.curl.dev
>
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to