Cerebral malfunction
In the last few weeks, I have on at least three separate occasions completely forgotten about the re.UNICODE
flag, instead starting to mess with locale and other settings. What is wrong with me? (Okay, don't answer that.)
My pet pattern at the moment:
pat = re.compile(r"\w+|\S", re.UNICODE)