I have content like
San Clemente, CA 92673
or
Arlington, TX 76012-3693
And I need to split it into CityAndState
and Zip
.
Some
I'm trying:
$moreAddressInfo = preg_split('^[0-9.]{5,}^', $row2['cityAndZip'],null,PREG_SPLIT_DELIM_CAPTURE);
(also tried without the flag)
... the CityState portion is getting returned just fine, but the main Zip info is missing
(for the above two examples, $moreAddressInfo[1] would equal '' and '-3693', respectively).
Any pointers ?