<?php

$string = "Hey, I have
more than
one line...";

echo (preg_match("~^[\r\n\w /:,.?@;-]+$~",$string))? "Good!" : "Bad!";