Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

11
  • 44
    \$\begingroup\$ ... WE HAVE A WINNER. \$\endgroup\$ Commented Dec 28, 2015 at 15:11
  • 10
    \$\begingroup\$ Just btw, I'd say the number of matches is infinite. The empty string can repeat an unlimited number of times and be matched infinitely. \$\endgroup\$ Commented Dec 28, 2015 at 15:19
  • 57
    \$\begingroup\$ @nicael Luckily, that's not how regex works. ;) \$\endgroup\$ Commented Dec 28, 2015 at 15:19
  • 8
    \$\begingroup\$ @MartinBüttner that depends on your regex engine. I've definitely encountered systems that will crap out if you ever try to match the empty string. \$\endgroup\$ Commented Dec 28, 2015 at 16:30
  • 22
    \$\begingroup\$ @LorenPechtel that rule applies only to quine challenges where the empty program is trivially a solution in most languages. I think it's fair game here, since this empty program actually has non-trivial semantics and Retina does not have this behaviour because of challenges like this but because it's the only consistent generalisation of its behaviour for all single-line programs. \$\endgroup\$ Commented Dec 30, 2015 at 7:27