Missed the point but thanks for playing. ๐ Whatโs potentially too clever isnโt the use of regex, but doing both splits simultaneously and using each_slice(2) for combining them again.
We're a place where coders share, stay up-to-date and grow their careers.
Anyone who says rex is too clever clearly hasn't bumped into bit-shifting code-golf lol
Rex is a very appropriate amount of cleverness ๐
Missed the point but thanks for playing. ๐ Whatโs potentially too clever isnโt the use of regex, but doing both splits simultaneously and using
each_slice(2)
for combining them again.