bcswanson/KirklandCrime — comment on commit 2df75849610034c3fcf418528f1e71f880e9503d
File: screenScrape.py line 26
By blinks:

Hm, perhaps you misunderstand -- for the regex right here, it turns into:

re.sub(r'(<[^>]+>)', '', item)

The compass directions could be:

r'([NS]\.?)|([NS]\.?)?([EW]\.?)'

Then do a search instead of a match (which says, find it anywhere instead of just at the beginning -- `r'^...'` says to look at the beginning only). This regex says: find an `N` or an `S`, then an optional dot, OR, optionally find an `N` or an `S`, then find an `E` or a `W`.