Parse and transform URL patterns.