<?php $allowed_chars = 'a\-z 0\-9~%\.\:_\-'; $str = 'renewal'; if ( ! preg_match("/^[".$allowed_chars."]+$/i", $str)){ echo "Unallowed!!!!"; }else{ echo "Looks fine"; }
You have javascript disabled. You will not be able to edit any code.