Timeline for Is my name official?
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 15, 2019 at 22:01 | comment | added | MilkyWay90 | @movatica Oh, whoops! | |
Jun 15, 2019 at 22:00 | comment | added | movatica |
@MilkyWay90: nope, in this case this costs more than it saves: re. is 3 bytes vs from * which counts 6.
|
|
Jun 15, 2019 at 21:34 | comment | added | MilkyWay90 |
@movatica Immediately what I was thinking. You could even use from re import* for less bytes
|
|
May 23, 2019 at 20:25 | comment | added | movatica |
If you use a anonymous lambda instead of a whole program, you get 45 bytes: lambda s:re.match('[A-Z][a-z]+$',s) import re
|
|
May 23, 2019 at 20:01 | comment | added | movatica | @WayneWerner: that's why you should give the Python version :) I think Python 2 and Python 3 are kind of different languages, at least for codegolf. | |
Dec 24, 2015 at 16:32 | comment | added | Wayne Werner | @manatwork nice! Another byte shaved :) I could save another byte with the closing paren, using Python2 | |
Dec 24, 2015 at 16:31 | history | edited | Wayne Werner | CC BY-SA 3.0 |
added 9 characters in body
|
Dec 24, 2015 at 16:20 | comment | added | manatwork |
^ is not needed as re.match() only matches at the beginning of string.
|
|
Dec 24, 2015 at 16:13 | review | First posts | |||
Dec 24, 2015 at 16:20 | |||||
Dec 24, 2015 at 16:09 | history | answered | Wayne Werner | CC BY-SA 3.0 |