^[a-zA-Z0-9]*[a-zA-Z0-9 _][a-zA-Z0-9]{2,24}$
That's what I have right now.
I want to require an alphanumeric first; allow for alphanumerics, underscores, hyphens, periods, and spaces; require that it end with an alphanumeric. But I only want to allow as many as 3 of those special characters.
I'm primarily confused about how to limit the number of the special characters.