Skip to content

Instantly share code, notes, and snippets.

View sauron918's full-sized avatar
🇺🇦

Serhii Nahorets sauron918

🇺🇦
View GitHub Profile
@sauron918
sauron918 / .gitignore
Created November 21, 2016 14:51
.gitignore for PuPHPet
# Vagrant stuff
.vagrant
.vagrant link
puphpet/config-custom.yaml
puphpet/files/dot/ssh
!puphpet/files/dot/ssh/insecure_private_key
@sauron918
sauron918 / parse_street.md
Last active October 12, 2017 06:36
Parse street name and house number

Regular expression for parsing street name and house number:
^([^\d]*[^\d\s]) *(\d.*)

Examples:
'Long Street 106 - 108 A' => 'Long Street', '106 - 108 A'
'Street 145' => 'Street', '145'
'Street56a' => 'Street', '56a'
'Some Avenue 68' => 'Some Avenue', '68'
'Some Ave 999a' => 'Some Ave', '999a'
'Singlestreet551abc' => 'Signlestreet', '551abc'

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.