SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
first, *rest = ex.split(/, /)
Now first will be the first value, rest will be the rest of the array.
first
rest