I've tried multiple solutions from other threads but nothing seems to work when the split flag is a string as well. In this case I need to separate the first " - " (space dash space) from the rest of the string, which contains other occurences of " - "
var string = "1 - 000 : 3 - loremipsum";
Looking for a resulting array of:
[1][000 : 3 - loremipsum]
没有评论:
发表评论