Written by
Aaron Bell
on
on
RegEx consumption
I suspect that RegEx “consumption” means incrementing the position of the RegEx pointer while putting it into a bucket with a pending possible match. Then I suspect that discarding is maintaining the position while getting rid of the match because the string failed the regex pattern.