Codice PHP:
$pattern "/[[:alnum:] _-]{{$min},{$max}}/i";
preg_match($pattern$in_uname$match);