I am trying to split a type string Presentation about "Test Driven Development"into an array like this:
[ 'Presentation',
'about',
'"Behavior Driven Development"' ]
I tried CSV::parse_line(string, col_sep: ' '), but it leads to
[ 'Presentation',
'about',
'Behavior Driven Development' ]
I also tried some regex magic, but I am still a newbie and not successful. I think this is pretty easy for a professional, so maybe someone can point me in the right direction? Thank.
source
share