I tried with this for a while and could not, not so well with regex, I need the following:
Username (person name is not username)
it may include - because some names have a hyphen in them (maximum 2 is allowed)
it may include a space (up to 3)
it cannot include numbers and must begin with a non-hyphen letter
must be at least 3 characters and 30 max
it must match people with non-English letters (e.g. Agnès)
I tried this, but it failed, it allowed me to start with a number and not accept non-English letters like è or ï
^[a-zA-Z\-]{3,30}$
Any help would be greatly appreciated, and I think this will help many programmers looking for SO
Joe d