4 ms·
https://github.com/darius/ung/blob/master/c/regexpoid.c https://github.com/darius/ung/blob/master/c/regexpoid.c was my solution; it handles a slightly more usef
by abecedarius 14y ago
https://github.com/darius/ung/blob/master/c/regexpoid.c https://github.com/darius/ung/blob/master/c/regexpoid.c was my solution; it handles a slightly more useful subset (including escaping) and saves some code by calling segment_matches at the top level.
(I'd seen Pike's code years before in _The Practice of Programming_, so it's not independent.)