- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?php
$page=array();
$matches = array();
$matches[0]='../ololo';
preg_match('#([A-Za-z0-9\-\_]*)#', $page, $matches);
$file = '../views/' . $matches[1] . '.html';
var_dump($file);