I want to use .NET’s Regex.IsMatch function to determine if a string is 8 characters long and matches the expression AK-\d\d\d\d[fF]. So, AK-9442F would match but not AK-9442F2 nor AK-9442. How would I construct the expression?
I want to use .NET’s Regex.IsMatch function to determine if a string is 8
Share
Using the static Regex.IsMatch, you can do:
Should work for your purpose. Broken down, it’s:
GSkinner Test