I'm finding it difficult getting started with regular expressions in python.
I have a bunch of strings now that look like this:
<street address><SPACE><#><SPACE><Suite number or letter>
I need to separate the Suite number from the rest of the string and save it in another variable. I also need a copy of the street address without the suite number.
Here are some examples:
1111 19th St NW # 200
1408 U St NW # A
1509 17th St NW # 1
1515 14th St NW # 1
1612 K St NW # 1000
1700 17th St NW # C
1900 K St NW # 1200
1900 M St NW # 200
6034 Baltimore Ave # 2
843 Quarry Road # 140
8455 Colesville Rd # 100
What is a good way to do this?
Thanks!