public function is_regex($path) added