`$name` should go through `preg_quote`