Skip to main content

Timeline for Uncollapse digits

Current License: CC BY-SA 3.0

15 events
when toggle format what by license comment
Nov 30, 2017 at 22:56 comment added Ephellon Grey Try s=>s.replace(/..[eox]|[est]?.{4}/g,"$& ") instead, still 41 B though
Nov 29, 2017 at 22:29 comment added Alan Dong s=>s.replace(/zero|one|two|three|four|five|six|seven|eight|nine/g, "$& ") this is naive, but straightforward.
Nov 21, 2017 at 15:17 history edited Forty3 CC BY-SA 3.0
Golfed thanks to suggestion by Titus.
Nov 21, 2017 at 15:13 comment added Forty3 @Titus - Unfortunately, the on| will match zeronine rendering zer onine
Nov 21, 2017 at 15:06 comment added Titus on|t[wh]|.i|[fsz] (-4 bytes)
Nov 21, 2017 at 13:48 history edited Forty3 CC BY-SA 3.0
Golfed thanks to suggestion by Neil and FrownyFrog
Nov 21, 2017 at 13:28 comment added Neil The f=() around the s is unnecessary (unnamed lambda is acceptable).
Nov 21, 2017 at 0:22 comment added FrownyFrog @Uriel I see, thanks.
Nov 21, 2017 at 0:21 comment added Uriel @FrownyFrog o comes first so it is recognized first.
Nov 21, 2017 at 0:11 comment added FrownyFrog @Uriel so 'ni' doesn't take priority if you put it on the left of 'on'?
Nov 21, 2017 at 0:08 comment added Uriel @FrownyFrog will fail for "twonine" ("on" in middle)
Nov 21, 2017 at 0:03 comment added FrownyFrog I'm thinking z|tw|th|f|s|ei|ni|on
Nov 21, 2017 at 0:00 history edited Forty3 CC BY-SA 3.0
Golfed
Nov 20, 2017 at 23:58 comment added FrownyFrog Does it break if you use two characters and push 'on' to the end?
Nov 20, 2017 at 23:55 history answered Forty3 CC BY-SA 3.0