fix warning preg_match(): No ending delimiter '/' found due to missing delimiter in regex