public void CheckForMatch([Match("\\d+")] string myString) { // Argument.IsMatch(() => myString, "\\d+"); }