Re: [Rails] split function splitting on spaces when data contains spaces also

2018-11-04 Thread Colin Law
Can't you just use regular expressions to split it up? Like this for example https://www.oreilly.com/library/view/scala-cookbook/9781449340292/ch01s09.html Colin On Sun, 4 Nov 2018 at 21:18, fugee ohu wrote: > > I'm trying to split on spaces but one of the data columns has spaces in it > and no

[Rails] split function splitting on spaces when data contains spaces also

2018-11-04 Thread fugee ohu
I'm trying to split on spaces but one of the data columns has spaces in it and no quotes around it It's sms exported from my phone I wanna save them to a table Each line looks like the line below The first is the phone number then the date and time, then the body of the sms message and then a