[Terminal] Add URL matching support