Hello,
You could use the split method:
string[] numbers = text.Split('-');
foreach (string number in numbers)
{
System.Console.WriteLine(s.trim());
}
If this question answer your question please mark as an answer
João Sousa (MCTS) Senior Software Engineer
No comments:
Post a Comment