Comment on Python code to solve xkcd 1313 by Peter NorvigComments−throwaway_yy2Di12yI don't know why Randall's regex incorrectly (?) matches "Fremont", but it's worth noting Wikipedia's primary spelling has an accent aigu "Frémont":https://en.wikipedia.org/wiki/John_C._Frémont−fwenzel12yFrémont still matches "[rn]t", so the problem persists regardless of this spelling.
Comments
I don't know why Randall's regex incorrectly (?) matches "Fremont", but it's worth noting Wikipedia's primary spelling has an accent aigu "Frémont":
https://en.wikipedia.org/wiki/John_C._Frémont
Frémont still matches "[rn]t", so the problem persists regardless of this spelling.