i have a problem with my python code. The problem is this line:
match = re.search(pattern, bytes).start()
but i get this error...i hope you can help me.
i have a problem with my python code. The problem is this line:
match = re.search(pattern, bytes).start()
but i get this error...i hope you can help me.
I think the code should be like the following.
match = re.search(pattern, bytes)
if match != None:
print("Match at index %s, %s" % (match.start(), match.end()))
else:
print("The regex pattern does not match.")
Hope it could help.