I have string for example: "238 NEO Sports"
. I want to split this string only at the first space. The output should be ["238","NEO Sports"]
.
One way I could think of is by using split()
and finally merging the last two strings returned. Is there a better way?