Last active
May 12, 2021 01:50
-
-
Save JohannesFischer/ce5b65d5aba5c4b8f48915d3b1fbd456 to your computer and use it in GitHub Desktop.
My solutions for Regex Golf - https://alf.nu/RegexGolf
This file contains 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
# Warmup – Type a regex in the box. | |
foo | |
# Anchors – You are deducted one point per character you use, and ten if you match something you shouldn't. | |
ick$ | |
# It never ends – $ not allowed | |
fu\b | |
# Ranges – The test vectors were generated by grepping /usr/dict/words. Can you tell? | |
[a-f]{4,} | |
# Backrefs – This doesn't really work as a tutorial. Not really clear what you're supposed to do here. | |
(\w{3,})\w*\1\w* | |
# Abba – Let's pretend this one is not a rehash of the last one. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment