SyntaxFix
Write A Post
Hire A Developer
Questions
add {3,5} to your expression which means length between 3 to 5
{3,5}
/^([a-zA-Z0-9_-]){3,5}$/