[5.0] Routing : add matchPattern function

And use it for `is()` and `uses()`
@crynobone, changed a bit code so that it is still possible