<?php $not_allowed_symbols = '[^a-z0-9:;,!\'\s*.?()"-]'; $letter = nl2br("aaa\nbbb\nccc"); if(preg_match("/$not_allowed_symbols/i", $letter)){ echo "There are not allowed symbols in the text"; }else{ echo "There are allowed symbols in the text"; }
You have javascript disabled. You will not be able to edit any code.