I have the following:
rule = "http://www.abc.com/"
test = "http://www.abc.com/test"
print(str(re.compile(rule).match(test)))
I want this to output None but instead it returns a match. How can I change the rule variable so the regex returns None?
"http://www3abc3com/"might match. At least I think so... I could be wrong though. But try testing it out.^and$and escape the dots