I have a string from where I need to extract street , city , state , zip .
The string may look like
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)
I am currently using split function to get an array and taking those values to do my work but I want a single regex to do the task for me.I would appreciate any help. Thanks