registerguard / entertainment-calendar

Make an exported Evvnt.com calendar fit to print
MIT License
0 stars 0 forks source link

remove ZIP codes for non-Eugene locations, format tele. nos. #1

Open jheasly opened 5 years ago

jheasly commented 5 years ago

Remove ZIP codes in mid line , \d{5}\. \.

Fixing streets in addresses end of sentence (this stupid little pattern seems to work)
Avenue\. Ave\. Street\. St\. Boulevard\. Blvd\.

Fixing streets in addresses end of sentence (this stupid little pattern seems to work) Street, St., Avenue, Ave., Boulevard, Blvd.,

Formatting phone numbers 5414851234 => 541-485-1234 ( \d{3}) ?(\d{3}) ?(\d{4})([\.\,]) \1-\2-\3\4

(541) 485-1234 => 541-485-1234 \((\d{3})\) (\d{3}-\d{4}) \1-\2