regex2fat: Turn Your String Search Pattern Into a Labyrinth of Folders
Regular expressions (regexes) are among the more cryptic dialects of code, adding dense clusters of undifferentiated punctuation, even when written by programmers who otherwise go to great lengths to favor clarity. Continually confounding for beginning programmers, they are nearly unavoidable, appearing in nearly identical forms across many programming languages. Take, for instance, this quite common regex:
As we can all see, it is how one determines whether an email address is valid.
8051Enthusiast has created a tool called regex2fat which translates regexes like the one above into disk images, creating a labyrinth of folders one can navigate through to find matches for their expression. Asked how he came up with the idea, he said:
I unfortunately can't really remember the moment it clicked, but I must have thought something like "Oh no that's terrible."
This entry originally appeared at esoteric.codes/blog/regex2fat, and may be a summary or abridged version.