preg_match script command

port preg_match script command from rathena to hercules