Launch:
var match = Regex.Match(phoneNumberTextBox.Text, @"(?<=^|,)\+?\d+");
while (match.Success)
{
string phoneNumber = match.Groups[0].Value;
Console.WriteLine("Found phone number: " + phoneNumber);
match = match.NextMatch();
}
with this data:
+919981424199,919300951916
Produces this conclusion:
Found phone number: +919981424199
Found phone number: 919300951916
source
share