public static FlexibleToInt ( String String ) : int | ||
String | String | |
return | int |
public static int FlexibleToInt(String String)
{
var Regex = new Regex(@"^\d*", RegexOptions.Compiled);
String Selected = Regex.Match(String).Groups[0].Value;
int Value =0;
int.TryParse(Selected, out Value);
return Value;
}