–1 vote
20 views

I want to split the string "004-034556" into two strings by the delimiter "-":

part1 = "004";
part2 = "034556";

That means the first string will contain the characters before '-', and the second string will contain the characters after '-'.

I also want to check if the string has '-' in it.

closed with the note: Duplicate
...