
What is regex golf?
The title of the comic and the first panel is based on " regex golf ", which is a discipline of " code golf ", a game in which programmers attempt to solve a given programming problem using as few characters as possible, analogous to the number of golf shots it takes to reach the goal.
Where can I use regex?
Regex can be used in programming languages such as Python, SQL, Javascript, R, Google Analytics, Google Data Studio, and throughout the coding process. Learn regex online with examples and tutorials on RegexLearn now.
How do you know if a string matches a regular expression?
Given a regular expression, one can search for the pattern it specifies inside a text string. If the pattern is found, it's said that the pattern "matches" the string; if it's not found, it's said it doesn't match.
What is the regex golf challenge Megan faces?
The regex golf challenge Megan faces consists of matching all subtitles of (then extant) Star Wars films, while not matching any subtitle of Star Trek movies. Subtitles are the secondary titles of the movies, after the "Star Trek: " or "Star Wars Episode N: ".

Where can I practice regex?
Playground. If you want to generate a Regex, you can easily build and test your Regex pattern via the Playground. As a Regex tester, you can validate and share your Regex with others for collaborative work.
WHAT IS A in regex?
The power of regular expressions comes from its use of metacharacters, which are special characters (or sequences of characters) used to represent something else. For instance, in a regular expression the metacharacter ^ means "not". So, while "a" means "match lowercase a", "^a" means "do not match lowercase a".
How do I start regex?
As usual, the regex engine starts at the first character: 7. The first token in the regular expression is ^. Since this token is a zero-length token, the engine does not try to match it with the character, but rather with the position before the character that the regex engine has reached so far.
What does '$' mean in regex?
$ matches position just after the last character of the string. . matches a single character. Does not matter what character it is, except newline. * matches preceding match zero or more times.
What is regex golf?
What is it? In Regex Golf, you not only have to find a regex that matches a list of words, but it also must not match another list. As the “golf” in its name suggests, you also have to find the shortest regex possible. The challenges brought by @steike quickly rise in difficulty, to the point it sometimes doesn’t reflect real-life problems — for instance, finding a regex to match multiples of 3.
How many levels are there in Regex Golf?
Why play it? RegexPlay had only 12 levels, which can be too few to really master the more complex features of the regex language. Playing Regex Golf is an opportunity to do just that, and it will also enable you to create regular expressions specifically meant for not matching specific contents.
What is a regex crossword?
What is it? Created by Ole and Maria Michelsen, Regex Crossword just describes itself: your goal is to fill a grid with characters that match the regexes on the vertical and horizontal lines, usually revealing a word or phrase.
What is regexplay?
What is it? RegexPlay is a game created by the Machine Learning Lab from the University of Trieste. Your goal is to find a regex that matches all highlighted elements from a piece of content (and only them).
How many exercises are there in the game of chess?
A little bonus if you like some competition: when you clear all the 12 exercises, you will see how well you did, compared to everybody else based on the time you spent on the game.
Mobile (NEW!)
Try our new mobile version! Optimized for phones and solving puzzles on the go.
Tutorial
A step by step tutorial, teaching you the different symbols and regex patterns.
Beginner
Cut your teeth on an easy set of crosswords, learning the basics of regular expressions.
Intermediate
So you've got skills eh? Let's see how you handle a tougher challenge...
Experienced
Now it's getting difficult. We are ramping up the size and complexity. Try to keep up!
Cities
Rome wasn't built in a day you know, but see if you can complete these puzzles that fast.
Hamlet
Though this be madness, yet there is method in't. Will you walk out of the air, my lord?
