Can you think of a regular expression that does not match itself?


closed as too broad by lirtosiast, Addison Crump, Loovjo, AdmBorkBork, Optimizer Nov 5 '15 at 20:23

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • \$\begingroup\$ a{2}, and many more \$\endgroup\$ – Ypnypn Nov 5 '15 at 20:19
  • \$\begingroup\$ Welcome to Protramming Puzzles & Code Golf! I think this question is a bit too broad, there's very many regexpes that doesn't match them self. I would also suggest adding a objective winning criteria, such as code-golf (shortest regexp wins) or popularity contest (answer with the most votes wins). \$\endgroup\$ – Loovjo Nov 5 '15 at 20:21
  • \$\begingroup\$ ^$ - Can't think of shorter for now.. \$\endgroup\$ – Optimizer Nov 5 '15 at 20:22
  • \$\begingroup\$ This should have been closed as a duplicate of codegolf.stackexchange.com/q/22648/194 \$\endgroup\$ – Peter Taylor Nov 5 '15 at 21:28

A few on 2 chars







And many more consisting of a \ and a lowercase character.


Not the answer you're looking for? Browse other questions tagged or ask your own question.