\b\w{6,50}\b
\w - any character of a βwordβ - depending on the flavor of the regular expression, it may just be [a-z0-9_], or it may include others (for example, accented characters / etc).
{6,50} means from 6 to 50 (inclusive)
\b means the boundary of the word (so that the word does not exceed 50 at both ends).
, , , ? ...
^\w{6,50}$