you should match the last in the array, in case there are `.` in the urls for other reasons.