Created
March 9, 2017 05:20
-
-
Save j-/66c4134df7e0524cdfc994ae3aec992c to your computer and use it in GitHub Desktop.
Impossible Regular Expressions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* These are regular expressions that will | |
never be matched by any string ever */ | |
[ | |
// http://stackoverflow.com/a/1845111 | |
/$./, | |
// http://stackoverflow.com/a/1845097 | |
/(?!x)x/, | |
// http://stackoverflow.com/a/1723264 | |
/(?=a)b/, | |
// http://stackoverflow.com/a/1845111 | |
/(?!)/, | |
// http://stackoverflow.com/a/4850260 | |
/\B\b/, | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment