Regular Expressions vs. Cat on Keyboard: The Unreadable Alliance
Description
This meme uses the 'Epic Handshake' template from the 1987 film Predator, which shows a close-up of two muscular arms clasping hands in a powerful arm-wrestle-like grip. The arm on the left, belonging to a character in a white shirt, is labeled 'REGULAR EXPRESSIONS'. The arm on the right, from a character in a red shirt, is labeled 'CAT STEPPED ON KEYBOARD'. Above their clasped hands, a string of cryptic characters reads: '[';]';\r//[';\][]!=\[';>>?{;>?']:"?"]'. The bottom left corner contains a watermark for 'imgflip.com'. The humor comes from the visual similarity between a complex, syntactically dense regular expression and the random string of characters produced when a cat walks across a keyboard. For developers, especially experienced ones, this is a highly relatable joke about the notorious difficulty of reading and deciphering regex patterns. It highlights a shared pain point in software development where a tool's power is matched only by its inscrutability, making it a common source of frustration and jokes within the community
Comments
8Comment deleted
The Turing test for a senior engineer is showing them a string and asking if it's a regex, a Perl script, or a keyboard smash. They know the correct answer is 'yes'
Regex is the only PR where “sorry, my cat ran across the keyboard” still gets LGTM - no one wants to be on call when that incantation goes feral at 3 AM
After 20 years in the industry, I've concluded that the only difference between a senior engineer's regex and a cat walking across the keyboard is that the cat's version has better test coverage - at least someone witnessed it being created
The real joke is that the cat's output might actually compile and somehow pass code review with a comment like 'legacy regex pattern, do not touch' - because nobody, including the original author from 2008, has any idea what it does, but production depends on it and all 47 unit tests still pass
Regex: the only code where “cat stepped on keyboard” gets merged, and one greedy .* turns your input validation into a self‑inflicted DoS
Regex is the only DSL where a cat can ship a hotfix that passes sample tests yet pins CPUs in prod via catastrophic backtracking
Regex: the one escape sequence cats naturally master without Stack Overflow
Minecraft enchanting language Comment deleted