4 ms·
Much smaller regular expression to test divisibility by 7
- eru 16y agoCompatible with grep -Ex See also http://github.com/matthiasgoergens/Div7 http://github.com/matthiasgoergens/Div7 for the program that created it.
- greenlblue 16y agoThis is completely meaningless. The final regular expression is a complete black box and I dare people to try to decipher it.
- mathgladiator 16y agoI wonder if he built a state machine and then converted it to a regular expression.
- greenlblue 16y agoHe did you just need to look at the lhs to see how he does it with haskell.