Hey, please can someone help me work out a code for this function.

Name of function and its parameter
url1(pages,pattern)

Description
returns the url part of the first page in pages for which the content part matches pattern (in the style of function 1, case insensitive)
returns an empty string if no page is found

Example
url1(pages,"ALT") returns "www.xyz.ac.uk"
url1(pages,"xyz") returns ""

Thanks!