i wanted to match all the dates matching 31\05\2017
i tried :
b=re.compile(r'31\05\2017')
b=re.compile('31\05\2017')
b=re.compile('31\\05\\2017')
b=re.compile(r'31\\05\\2017')
and what ever pattern i use , the below code gives same result
c=b.search('31\05\2017')
print(c.group())
gives '31\x05\x817'
how to get 31\05\2017
instead of null and other character being print