support regex matching in expect_urlopen