3 ms·
If you want something with an actual regular expression, have a look at https://codegolf.stackexchange.com/questions/3503/hard-code-golf-regex-for-divisibility-
by eru 3y ago
If you want something with an actual regular expression, have a look at https://codegolf.stackexchange.com/questions/3503/hard-code-golf-regex-for-divisibility-by-7 https://codegolf.stackexchange.com/questions/3503/hard-code-... which is a code golf for regular expressions to test divisibility by 7.