For this week, I tried two different regular expression oriented games: Regex Golf and Regex Crossword, but mostly Regex Golf. This game is entirely different from golf, but I'm guessing the name is a nod to the scoring mechanic - you're given a set of words that you must match and set that you must not. The better you match, the more you score.
It was a fun way to practice regular expressions, but it left me with a couple of questions regarding syntax. Which operators do I need to use within parentheses? How does that change them? I was also left confused about how to actually build an algorithm in some of these. Some of them when I searched them mentioned finite-state automata, which created some flashbacks to my undergraduate algorithms classes that I no longer remember. So I guess to sum up
- Do I need to build an algorithm within the regex and if so how?
- What are the syntax nuances?