That’s another layer of headscratching, yeah. The thing I meant to snark at is how stupidly the “any number” match is written: “make a pointless new group that contains at least one digit - oh, and that group may not exist”, instead of just * which is simply “zero or more of the thing”
That’s another layer of headscratching, yeah. The thing I meant to snark at is how stupidly the “any number” match is written: “make a pointless new group that contains at least one digit - oh, and that group may not exist”, instead of just
*which is simply “zero or more of the thing”Yeah it could just be
\d*