python-cookbook icon indicating copy to clipboard operation
python-cookbook copied to clipboard

Page 48 2.7,Typo in Regex

Open xkcdjerry opened this issue 5 years ago • 0 comments

should be re.compile(r'"(.*)"') because with r'...', backslashes will be remained so the findall should return [],The fix should be to delete the two backslashes.

xkcdjerry avatar Apr 07 '19 03:04 xkcdjerry