Another question:
My goal is to match the same page-view for various patterns: 123456789.html, id123456.html (rt_company, rt_format='\.html').
In the first sample, I would like to pass to my filter an argument: filters='company_exists=number', which will search for custom_field number with rt_company as a value. If company is found by its number, then I will set a global variable with it to use later.
In the second sample, I would pass filters='company_exists=page_id', which will help me search for a company by k_page_id.
What's the best strategy to implement this?
Simple solution is to validate by title_ready, and after route is matched go for real validation.
Another simple solution is to add another similar routes with different name and route_constraint.
P.S. Another solution comes to mind is to remove "id" and in filters look for a company first by number, then by id. In this case I am afraid that id could be the same as number by chance.