Something worth noting for those PHP developers out there; remember that you need to escape backslashes in PHP.

So if you see:

preg_match(‘/^([a-z]+)\\.html/’, $subject, $matches);

The regular expression that this actually uses is:
/^([a-z]+)\.html/

As the first \ is a PHP escape character.

Always gets me…