3 ms·
It's definitely not the optimal regex. Finding the smallest regex is a hard problem (at least in theory): https://cs.stackexchange.com/questions/19686/is-regex
by eru 11y ago
It's definitely not the optimal regex. Finding the smallest regex is a hard problem (at least in theory): https://cs.stackexchange.com/questions/19686/is-regex-golf-np-complete https://cs.stackexchange.com/questions/19686/is-regex-golf-n...
(I think I've read that finding the smallest one is not only NP-hard, but P-Space complete.)