Skip to main content

Timeline for Letter-replacement challenge

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
Apr 13, 2017 at 12:38 history edited CommunityBot
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Oct 18, 2016 at 11:44 history edited Dom Hastings CC BY-SA 3.0
added 195 characters in body
Oct 18, 2016 at 11:40 comment added Dom Hastings @Dada ahhh, I did wonder why you'd added it, I tested all the cases in the test suite, but didn't think about a 3 for 3 replacement...
Oct 18, 2016 at 11:13 comment added Dada Are you sure about removing the q{} surrounding $2 ? Wouldn't this fail when there are 3 - and 3 + switches? (I can't test it now, so maybe you were right so remove it ;) )
Oct 18, 2016 at 7:43 history edited Dom Hastings CC BY-SA 3.0
added 121 characters in body
Oct 17, 2016 at 20:47 comment added Dom Hastings Awesome! I'm not at a computer but I'll update that tomorrow! Thanks!
Oct 17, 2016 at 17:55 comment added Dada Gotcha! 58 bytes : perl -pE '$a=<>;1while$a=~s%-(\S*)(.*?)\+(\S*)%"s/$1/$3/g;q{$2}"%ee'. (takes the string on one line, and the "flags" on the next line)
Oct 17, 2016 at 15:51 comment added Dada 4 bytes longer, there is perl -pE 's/(.*?) -(\S*)(.*?)\+(\S*)/"(\$1=~s%$2%$4%gr).\"$3\""/ee&&redo'. I can't manage to get it any shorter, but maybe you can :)
Oct 17, 2016 at 11:23 history answered Dom Hastings CC BY-SA 3.0