New regex (JSON API V2)
Quick evaluation of the regex as proposed in moby/moby#9015 and mentioned in moby/moby#8961 (comment)
NOTE 1;
The actual regex is [a-z0-9]+(?:[._-][a-z0-9]+)*
. I left out the ?:
,
because that only distracts here and is to make the group 'non-capturing'