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