preg_match("/^([\000-\177]|[\200-\377][\200-\377])*([\000-\177]|[\200-\377][\200-\377])$/", $str)
error info:
Warning: No ending delimiter '/' found
what's wrong with this?
Moderator: General Moderators
try
Code: Select all
preg_match('/^([\000-\177]|[\200-\377][\200-\377])*([\000-\177]|[\200-\377][\200-\377])$/', $str)thank you very much
now it can work after i change to this:
if (preg_match("/^([0-\177]|[\200-\377][\200-\377])*([0-\177]|[\200-\377][\200-\377])$/", $str))
if (preg_match("/^([0-\177]|[\200-\377][\200-\377])*([0-\177]|[\200-\377][\200-\377])$/", $str))