我正在尝试将地址拆分为地址+城市状态。
例如:
some street name, Seattle, WA
other stree, number, something, Seattle, WA
假设地址的最后两项始终是城市,州......我如何分割最后一秒逗号之前的所有内容?
所以,我想得到一个数组左右:
array[0] = some street name
array[1] = Seattle, WA
array[0] = other stree, number, something
array[1] = Seattle, WA