I have a question about restricting the value entered in some input field. I would like to input this :
9digits-whatever, for example 101010101-Teststring.
I have come up with this regex as a solution, but it does not seem to be correct:
^\d{9}\-[a-zA-Z0-9_]*$
Any ideas on this one?
Thank you.
/^\d{9}-.+$//[a-zA-Z0-9_]/is exactly/\w/