I have created a regex that only allows the user to enter numbers and letters.
^[a-zA-Z0-9]+$
I wanted to make sure that the first character is uppercase so I looked up how to do it and i changed my equation to this:
^[A-Z][a-zA-Z0-9]+$
I tested my equation on a few sites that test regex and it works properly but when I put it into my program it doesnt seem to work.
Use a Regex method that allows you to specify a RegexOptions value, with
RegexOptions.IgnoreCaseturned off.