Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
var input = "d1048_m325";
//^d\d+_ -> the first letter is d followed by 1 or more digits and then an underscore.
var match = Regex.Match(input, "^d\d+_");
if(match.Success == false)
{
return null;
}
var finalMatch = Regex.Match(match.Value, "\d+");
return int.Parse(finalMatch.Value);
var input = "d1048_m325";
//^d\d+_ -> the first letter is d followed by 4 digits and then an underscore.
var match = Regex.Match(input, "^d\d{4}_");
if(match.Success == false)
{
return null;
}
//the value is 'd1048_'. take the next 4 characters starting at the 2nd character
var result = match.Value.SubString(1, 4);
return int.Parse(result);