08 April 2017

longestDigitsPrefix

My solution:
string longestDigitsPrefix(string inputString) 
{
    return Regex.Match(inputString, "^\\d+").Value;
}

Previous Next