^\\p{Alpha}[\\p{Alnum}_]{8,30}$
As per my understanding, this expression will match word having minimum 8 characters and maximum 30 characters, that starts with alphabetic character and can contain only alphanumeric character or/and underscore.
But its matching with the following word as well. "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaab"
Can someone help me understanding this