2014-08-30, 02:46 PM
How to block post when title contains characters that are not in this regular expression?
PS. Is this correct?
Allowed: numbers, alphabetic letters, space, and these characters:
, - ! # $ % & € / ( ) ' " { } [ ] < > ?
PS. Is this correct?
preg_match('/^[A-Za-z0-9 \,\-\!\#\$\%\&\€\/\(\)\'\"\{\}\[\]\<\>\?]+$/',$post->data['subject']);
Allowed: numbers, alphabetic letters, space, and these characters:
, - ! # $ % & € / ( ) ' " { } [ ] < > ?