Fix RegExps to support trailing / in URLs as well.