Live data from Hacker News

Regex that only matches itself

codegolf.stackexchange.com

1–10 of 66 posts

Re: Regex that only matches itself

#8
post #7

Reminds me of a quine - a non-empty computer program which takes no input and produces a copy of its own source code as its only output https://en.m.wikipedia.org/wiki/Quine_(computing)

It is literally a quine, viewed as a program in a language where (for example) the code consists of a regular expression and the output is the sequence of all strings matching that regular expression.
Post reply on HN