I have this Regular Expression:
^([^6]*)6
I want it to match ONLY the first character and make sure its a 6. E.g.
60123456789
It should return 1 match
0123456789 should return 0 matches
How can I do this?
Currently the results it returns in my application is: 601234567890 returns an error
EDIT: This is a data annotation above my ViewModel property
[RegularExpression("^([^6]*)6", ErrorMessage = "Phone Numbers must start with a 6")]