street 、 city 、 state 、 zip を抽出する必要がある場所から文字列があります。
文字列は次のようになります
a)$str1 ="2500 South 3850 West Suite A Salt Lake City, UT 84120-7225";
b)$str2 ="19701 DaVinci Lake Forest, CA 92610";
c)$str3="abc ,def ,ca 1234"; -->(note there are two commas in this one)
現在、分割関数を使用して配列を取得し、それらの値を使用して作業を行っていますが、単一の正規表現でタスクを実行したいと考えています。ありがとう