3 ms·
The regex crossword is working on the basis of matching the entire input string (of " "), not on finding a substring that matches the regex. You can pref
by jcranmer 6y ago
The regex crossword is working on the basis of matching the entire input string (of " "), not on finding a substring that matches the regex. You can prefer to think of it as having all regexes have an implicit ^ and $, i.e., you're attempting to find a substring that matches "^RDM*$".
- dec0dedab0de 6y agoYou can prefer to think of it as having all regexes have an implicit ^ and $ That is literally what is happening: https://github.com/Jimbly/regex-crossword/blob/master/crossword.js#L118 https://github.com/Jimbly/regex-crossword/blob/master/crossw...
- ladberg 6y agoNot anymore, hah: https://github.com/Jimbly/regex-crossword/commit/0e603975f21116718c6ed58328ae6d1ac7249628 https://github.com/Jimbly/regex-crossword/commit/0e603975f21...
- dec0dedab0de 6y agoHaha! Fantastic commit message
- Jimbly 6y agoGlad someone appreciated it :D
- schoen 6y agoSimilar to "egrep -x".