Ruby regex for a split every four characters not working

Viewed 16857

I'm trying to split a sizeable string every four characters. This is how I'm trying to do it:

big_string.split(/..../)

This is yielding a nil array. As far as I can see, this should be working. It even does when I plug it into an online ruby regex test.

3 Answers
Related