daily pastebin goal
77%
SHARE
TWEET

Untitled

a guest Oct 12th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Regular expression for parsing street name and house number:  
  2. `^([^\d]*[^\d\s]) *(\d.*)`
  3.  
  4. **Examples**:  
  5. 'Long Street 106 - 108 A' => 'Long Street', '106 - 108 A'  
  6. 'Street 145' => 'Street', '145'  
  7. 'Street56a' => 'Street', '56a'  
  8. 'Some Avenue 68' => 'Some Avenue', '68'  
  9. 'Some Ave       999a' => 'Some Ave', '999a'  
  10. 'Singlestreet551abc' => 'Signlestreet', '551abc'
RAW Paste Data
Top