I have been using the following regular expression in ASP.NET and Javascript:
[a-zA-ZöäüÖÄÜß0-9]{1}[a-zA-ZöäüÖÄÜß0-9_.\-]{2,14}[a-zA-ZöäüÖÄÜß0-9.!]{1}
Now, I am migrating to ASP.NET MVC and I am checking my code. I find that
'test'
%test
Are also matches. That's probably because not the whole string needs to be matched. And the test within 'test' is a valid match.
How do I need to change the RegEx to match the complete string and not only parts of it?