Is this a bug in GNU expr, or am I doing something wrong? Seems like it reports no match when the capture is all '0's.

(In the screenshot, ‘expr’ is Darwin/BSD expr, and ‘gexpr’ is from a recent GNU coreutils. I’m seeing this behavior on both Mac and Linux.)