![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Ok guys, Rookie filemaker guy here. I have what seems to be simple problem but I can't get it solved. I need to parse some text and it seems like it should be easy. text is: (as an example) Miami Beach FL 33139 I need to extract the city and remove the two letter state code and the zip. I use the filter function to removed the zip. I'm left with: Miami Beach FL I know I can use rightwords,1 to get FL (or the two letter state code) But how do get to the point where I"m left with Miami Beach. (some cities may be one, two or three words). How can I just extract the two letter state code? Any ideas would be appreciated Miron |
#2
| |||
| |||
|
#3
| |||
| |||
|
|
The last word is the zipcode, the second to last word is the state. So something like this: Zip = middlewords (CSZ; wordcount( CSZ); 1) State = middlewords (CSZ; wordcount( CSZ) - 1; 1) City = middlewords (CSZ; 1; wordcount( CSZ) - 2) Renfer wrote: Ok guys, Rookie filemaker guy here. I have what seems to be simple problem but I can't get it solved. I need to parse some text and it seems like it should be easy. text is: (as an example) Miami Beach FL 33139 I need to extract the city and remove the two letter state code and the zip. I use the filter function to removed the zip. I'm left with: Miami Beach FL I know I can use rightwords,1 to get FL (or the two letter state code) But how do get to the point where I"m left with Miami Beach. (some cities may be one, two or three words). How can I just extract the two letter state code? Any ideas would be appreciated Miron |
![]() |
| Thread Tools | |
| Display Modes | |
| |