Hai ragione anche tu, ho dimenticato ^ e $
Codice PHP:
$pattern "/^[[:alnum:] _-]{{$min},{$max}}$/i"