I am attempting to validate that the input into a textbox on a C# winforms conforms to a valid pattern.
The pattern must be a string that consists only of the following characters
- 0 to 9
- A to Z
- "-"
- "/"
I am looking at using the "Validating" event on the textbox to perform the validation but I am struggling with the correct Regular Expression to use - or maybe there's a better way than using a Regular Expression.