I'm trying to get the regex of a backslash, if the backslash is not present in the test string and not in the regex expression it is working, I tried \\ and \\\\
This is my code:
def getString():
test=',"string":"x\u002fg06HaX0M\u002fuTJh7Q",Bla'
m=re.match(r",\"string\":\"([\w\d\\\\]+)\",",test)
print(m.group(1))
The error i get is:
AttributeError: 'NoneType' object has no attribute 'group'
Thanks for your help.