Need regex expression in C# to extract 2 digits from the last but 2 digits.
For example consider the string "QWEREIA89RR". Here I want to extract "89"
Here is a approach with linq
string input = "Q1WEREIA89RR"; string result = string.Concat(input.Where(char.IsDigit).Reverse().Take(2).Reverse());
1.4m articles
1.4m replys
5 comments
57.0k users