urls = urls.xpath('//a[re:match(@href, "(world)") ]/@href', namespaces={"re": "http://exslt.org/regular-expressions"})
В то же время
urls = urls.xpath('//a[not(re:match(@href, "(bannedworld)")) ]/@href', namespaces={"re": "http://exslt.org/regular-expressions"})