Steps 1. Get incoming URL var url = '/product/shoes/234' 2. Create regex from incoming URL var regex = '/(product|:[a-zA-Z0-9]+)/(shoes|:[a-zA-Z0-9]+)/(234|:[a-zA-Z0-9+)' 3. Convert URL to dynamic parameters