I need to check if string has anything else than what specified below
- it must begins from letter (either uppercase or lowercase)
- can have alphabetical characters
- can have numeric characters
- can have dashes
- can have minus sign -
- can have underscore _
- can have comas ,
- can have dots .
- length from 4 to 35 caracters no more no less
everything else should not be in this string have have
i am stuck on this:
preg_match('/^[\w]{4,35}$/i', $username)