public function up() { $this->searchAndReplaceRegex('/(:render\\s+path=")([^"]+)"/', function (array $matches) { return $matches[1] . str_replace('/', '.', $matches[2] . '"'); }, array('html')); }