I’m currently building a CMS for my projects and I’m trying to route to my ‘Admin’ controller. Now my regexp is:
'admin(.*)'
But with this everything that start with ‘admin’ will be matched. I would like to match the route when ‘admin’, ‘admin/foo’ and ‘admin/foo/bar’ etc, is present. Not when ‘adminn’ or something like that.
Hope you understand what I’m after. Thx / Tobias
Alter the regex like this: