$matches = (() = /($regex)??/) - 1;
In reply to Re: Explained: Trying to count the captures in a compiled regular expression
by ysth
in thread Trying to count the captures in a compiled regular expression
by BooK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |