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.

Required fields*

5
  • 1
    \$\begingroup\$ You can use any regex flavour which existed before this challenge this rule doesn't reflect current consensus, which says that languages (and therefore regex flavors) created or updated after the challenge has been posted can still compete. \$\endgroup\$ Commented Dec 13, 2017 at 20:40
  • 1
    \$\begingroup\$ Related. (I suspect answers to this will look somewhat similar to jimmy's .NET answer there.) \$\endgroup\$ Commented Dec 13, 2017 at 21:08
  • 1
    \$\begingroup\$ @EriktheOutgolfer really there is consensus that languages created after the challenge can COMPETE? That's totally nonsense \$\endgroup\$ Commented Dec 14, 2017 at 11:56
  • 3
    \$\begingroup\$ @edc65 As of half a year ago. \$\endgroup\$ Commented Dec 14, 2017 at 12:14
  • \$\begingroup\$ Perl 5's /e modifier only applies to substitutions, and is not the only way to run external code. Also this disqualifies Perl 6 entirely as a regex is just a method with additional syntax. (The reason is it makes regexes easier to read and write) As a result all of the features needed in archaic regexes aren't needed (or included) as you just put in Perl 6 code. (meaning it probably isn't possible to do this challenge if you just limit to regex specific code) /^(\d+)**3%' '$ <?{$0[2]==[+] $0[0,1]}>/ or /^(\d+)' '(\d+)' '(\d+)$ <?{$2==$0+$1}>/ or /^(\d+)' '(\d+){}" {$0+$1}"$/ \$\endgroup\$ Commented Dec 15, 2017 at 17:38