xxxxxxxxxx
string rgxStr = @"\d+";
var intMatch = Regex.Match(decimalStr, rgxStr);
if (intMatch.Success) {
int intResult = int.Parse(intMatch.Value);
}
xxxxxxxxxx
// You can use .NET methods to find specific numbers or characters from strings
// Below is the IndexOf method:
string example = "abc 123";
int numbers = example.IndexOf("123");
int totalNumbers = example[numbers];