advanced URL pattern matching