Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Timeline for Match the permutations!

Current License: CC BY-SA 3.0

13 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited Community Bot
Commonmark migration
Nov 22, 2016 at 12:50 comment added Martin Ender I'm perfectly happy for you to replace your solution with it if you credit me. It's still your idea of using an autogram, and all I did was tweak some numbers in an editor until I got an autogram again. ;)
Nov 22, 2016 at 12:49 comment added user62131 Well found. I've added it to the post as an alternative/collaborative solution (you've done enough work on it that I can hardly count it as my own solution at this point).
Nov 22, 2016 at 12:48 history edited user62131 CC BY-SA 3.0
add Martin Ender's version of the solution to the post
Nov 22, 2016 at 12:17 comment added Martin Ender Even better: I got an autogram after dropping both 7 and 8, cutting this down to 253: pastebin.com/uqKKUGF9
Nov 22, 2016 at 12:04 comment added Martin Ender I fiddled around a bit and managed to recover an autogram after dropping those unnecessary escapes, saving 3 bytes: pastebin.com/4hUXHDrb
Nov 22, 2016 at 9:15 history edited user62131 CC BY-SA 3.0
make this work with `\z`, and add a bit more explanation
Nov 22, 2016 at 9:13 comment added user62131 Oh, I see; you change the \$ ... $ to z ... \z. That works; I'll go change it.
Nov 22, 2016 at 9:10 comment added Martin Ender As for the trailing linefeed there doesn't seem to be any restriction in the challenge on the kind of input to your regex, so that usually means it should work for any string whatsoever, and changing $ to \z doesn't do any harm (and doesn't break the autogram).
Nov 22, 2016 at 9:00 comment added user62131 Or to be more precise: I do need the (?=(.*5){1}) in this case. If I removed it, there would be a 5 in the program, because the (?=(.*1){6}) line would now have to read (?=(.*1){5}).
Nov 22, 2016 at 8:58 comment added user62131 I'm aware that it's possible to omit things like digits. However, they're there to make the autogram work. Removing any part of the program will cause all the rest to break, because it no longer describes the program correctly. (The counts for each line count the counts for each line! Thus it is in general basically impossible to change the program.) As for $ allowing a newline at the end of the string, that generally depends on how the regex is called by the surrounding program (they're normally run on code that's already been parsed into lines).
Nov 22, 2016 at 8:52 comment added Martin Ender I don't think you need to escape those {} in the last two lookaheads. You also don't need to add things like (?=(.*5){1}) since there wouldn't be a 5 if you didn't have that lookahead. One problem is that $ allows a trailing linefeed, so you'll need to use \z there instead of $ like jimmy did, but that won't cost you a byte I think since you save the \ in the first lookahead.
Nov 22, 2016 at 6:02 history answered user62131 CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /