I use `$_SERVER['REQUEST_URI']` to get this `/res/about_us.php`, I want the output to be `About Us`, I know I can use `preg_replace` for this, it is the regular expression I am struggling with.

I have this pitiful attempt thus far:

```
echo str_replace('.php', '', $uri);

```

I realised after this that I cant replace two cases using str\_replace... So I thought I need preg\_replace with regex, but not a clue how it works, cant seem to find a similar example through Google.

Regards