Preg_match pattern for user input filtering
Well if having an underscore in your line could be acceptable, then

$reg = "#[^\w\s-']#i";


could be used. If you cannot have underscores, then

$reg = "#[^a-z\d\s-']#i";


could be correct.

A conditional using preg_match would be safe with this.