Skip to main content
8 events
when toggle format what by license comment
Jun 17, 2020 at 9:03 history edited CommunityBot
Commonmark migration
Feb 28, 2019 at 22:41 comment added Deadcode Also, for unary regexes, can the meaning of the capture groups be specified to include combinations of groups to make output of larger numbers possible, for example \4*\2^2 + \5*\2 + \6 or examples such as those shown here? Without this, it is only possible to output numbers less than or equal to the input (or the largest input number, in the case of multiple delimited input numbers).
Feb 28, 2019 at 22:33 history edited Deadcode CC BY-SA 4.0
Minor edit that doesn't change the meaning (though makes it slightly clearer), but bumps this so that it has a chance of getting some needed attention.
Feb 28, 2019 at 9:23 comment added Grimmy Should non-participating capture groups count as empty string / 0 for the purpose of this rule?
Feb 28, 2019 at 9:03 comment added Grimmy @Deadcode yes, there are other languages with rules like this: asm may output via registers, and specifying the register numbers doesn't add to your byte count.
Feb 26, 2019 at 19:29 comment added Deadcode Is this to be interpreted such that the specification of which backref(s) contain the output is not counted towards the byte length of the regex program? I would strongly disagree with that, since the backref numbers are an integral part of the program and without them, it would not do anything useful. Is there any other language with a rule like this? At best, any regex answer that uses this rule should be treated as a distinct language which varies depending on the exact combination of backref numbers, like command-line parameters.
Dec 22, 2016 at 10:51 comment added Jasen perhaps reword to "a specified subset of captured groups" any could be mis-interpreted as allowing a different subset at each call.
May 30, 2015 at 3:46 history answered jimmy23013 CC BY-SA 3.0