I have some list that is holding several strings, for example:
List<string> list1 = new List<string>()
        {
            "REGISTER_OPTION_P2", "REGISTER_OPTION_P27", "REGISTER_OPTION_P254","REGISTER_OPTION_NOFW", "POWER_OPTION_P45JW"
        };
I Want to filter all the strings that are ending with the _P*where * is several digits only and not non-digits.
The result for the above will hold the following:
"REGISTER_OPTION_P2", "REGISTER_OPTION_P27", "REGISTER_OPTION_P254"
I know there is char.IsDigit() but it operates only on 1 digit. My case is multiple digits.
Any option to make it?
 
     
     
    