Split a string on the first occurrence
You can split a string on the first occurrence of pattern by setting the limit to 2
"I am, a, string, of, many, many, commas".split(",", 2)
=> ["I am", " a, string, of, many, many, commas"]
Tweet