regExp filter (PHP, ajax, jQuery)