The behaviour of match() when there is not exactly one thing matching seems a bit weird in general:
Pike v9.0 release 2 running Hilfe v3.5 (Incremental Pike Frontend)
> object buf = Stdio.Buffer("#4,7");
> buf->match("#%d,%d");
(1) Result: 11
>
Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum Wed, 08 May 2024 00:04:16 -0700
The behaviour of match() when there is not exactly one thing matching seems a bit weird in general:
Pike v9.0 release 2 running Hilfe v3.5 (Incremental Pike Frontend)
> object buf = Stdio.Buffer("#4,7");
> buf->match("#%d,%d");
(1) Result: 11
>