Hi! I used below code, but has some error.
string selected = "";
string value = "Part 1 for example∞5 Part 2 for practice∞3";
string selectedValues = value;
foreach (string item in selectedValues.Split('∞'))
{
string number = System.Text.RegularExpressions.Regex.Match(item, @"\d+").Value;
if (!string.IsNullOrEmpty(number.TrimStart(' ')))
{
selected += number + ",";
}
}
Output result must be 5,3
Now its result 1,5,3 its wrong