regex

RegEx for Username validation


I'm a beginner in RegEx.

I search a RegEx that validates if a string (username) is at least 3 chars, has no number or special char (ü, ö, ä) in firstspace, and no other special char else then üöä in total string.

How can I achieve this?


Solution

  • ^[a-zA-Z][a-zA-Z0-9üöä]{2,}$