You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
1\$\begingroup\$ regex are much more efficient here: Try it online! \$\endgroup\$Giuseppe– Giuseppe2017年12月27日 20:48:12 +00:00Commented Dec 27, 2017 at 20:48
-
\$\begingroup\$ (not that I don't appreciate the guts it takes to do a pure string manipulation approach in R) \$\endgroup\$Giuseppe– Giuseppe2017年12月27日 20:50:47 +00:00Commented Dec 27, 2017 at 20:50
-
\$\begingroup\$ 84 byte golf of your approach \$\endgroup\$Giuseppe– Giuseppe2017年12月27日 23:22:11 +00:00Commented Dec 27, 2017 at 23:22
-
\$\begingroup\$ @Giuseppe Wow, nice work! I've edited them into my answer, although if you'd prefer to make your own answer please go ahead! \$\endgroup\$rturnbull– rturnbull2017年12月28日 01:10:54 +00:00Commented Dec 28, 2017 at 1:10
-
1\$\begingroup\$ nah, don't worry about it. I golfed down another 10 bytes: porting another regex approach, and a 70 byte of your old approach \$\endgroup\$Giuseppe– Giuseppe2017年12月28日 15:14:18 +00:00Commented Dec 28, 2017 at 15:14