Timeline for Parse a Baseball Pitch String
Current License: CC BY-SA 4.0
18 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
Apr 22, 2020 at 6:32 | comment | added | Grimmy | Looks like the first two lookarounds can be merged: 51. | |
Apr 20, 2020 at 15:24 | comment | added | Arnauld | @Kaddath I think so, but I didn't check the ECAMScript spec. | |
Apr 20, 2020 at 14:52 | comment | added | Kaddath | And so should I conclude that ES9 supports non-fixed width lookbehinds (although not on all browsers) while PCRE doesn't? | |
Apr 20, 2020 at 10:57 | comment | added | Arnauld | @Kaddath This should work fine in recent versions of Chrome, Edge or Node, but not yet in Firefox. | |
Apr 20, 2020 at 10:30 | comment | added | Kaddath | I have a "SyntaxError: invalid regexp group" (because non-fixed width lookbehind it seems) when I try in the console or in Regex101 (or with PHP, no I swear I wasn't about to port the answer).. How can it work for NodeJS? | |
Apr 18, 2020 at 14:15 | history | edited | Arnauld | CC BY-SA 4.0 |
saved 11 bytes
|
Apr 18, 2020 at 10:12 | comment | added | Neil |
(S|F) can be [SF] , but if S , X and (empty string) are acceptable outputs, you can just use s=>/(?<=(B.*){4})|(?=H)|X|(?<=([SF].*){2})S/.exec(s)[0] .
|
|
Apr 18, 2020 at 9:55 | history | edited | Arnauld | CC BY-SA 4.0 |
minor update
|
Apr 18, 2020 at 8:54 | history | edited | Arnauld | CC BY-SA 4.0 |
added an explanation
|
Apr 17, 2020 at 23:58 | history | edited | Arnauld | CC BY-SA 4.0 |
saved 2 bytes
|
Apr 17, 2020 at 23:49 | history | undeleted | Arnauld | ||
Apr 17, 2020 at 23:49 | history | edited | Arnauld | CC BY-SA 4.0 |
fixed versions
|
Apr 17, 2020 at 23:28 | history | deleted | Arnauld | via Vote | |
Apr 17, 2020 at 23:21 | history | edited | Arnauld | CC BY-SA 4.0 |
saved 4 bytes
|
Apr 17, 2020 at 23:07 | history | edited | Arnauld | CC BY-SA 4.0 |
saved 1 byte and added another version
|
Apr 17, 2020 at 22:54 | history | edited | Arnauld | CC BY-SA 4.0 |
saved 2 bytes
|
Apr 17, 2020 at 22:37 | history | answered | Arnauld | CC BY-SA 4.0 |