support regexps in expect_urlopen()