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.

6
  • 7
    \$\begingroup\$ Also matches the string ".^" \$\endgroup\$ Commented Jan 14, 2014 at 4:57
  • \$\begingroup\$ @boothby: in which language does matches? in Python doesn't. re.findall(r'^.^', '.^', re.DEBUG) \$\endgroup\$ Commented Jan 14, 2014 at 8:39
  • 9
    \$\begingroup\$ +1 for using the manga operator (see stackoverflow.com/questions/3618340/…) \$\endgroup\$ Commented Jan 14, 2014 at 19:11
  • 2
    \$\begingroup\$ It's broken in Perl. This question really should have set some ground rules about language. \$\endgroup\$ Commented Jan 14, 2014 at 19:28
  • 1
    \$\begingroup\$ Actually, “^” is only special if at the beginning of the string. Any “^” after anything else does not need to be escaped, so this answer is wrong. \$\endgroup\$ Commented Oct 20, 2014 at 12:54