Hi Matt,

So let's say I've stripped everything out of

'St. Louis, MO KLSDJLKDJF'

using stateEtc = trim(ListLast(foo)) to get

'MO KLSDJLKDJF'

Would this be the best way to get 'MO'?
statematch = listfirst(stateetc, " ")

That would make statematch equal to MO since it lists the first part of the
string using the space as a delimiter. Or is that going to list the first
part of the string AFTER the delimiter is found?

If it's right as is, Then I could just test if it's length is 2 or not, and
if it is, test if it just alphabetical characters.

<CFIF listlen(statematch) eq 2 and isAlphabetical(statematch)>

Now, there isn't an isalphatical function that I know of.

http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt010.htm#3485787

What can I do to check if the 2 character string only containts a-z

Can I do something like find("a-z", foo) ??

Not sure what to do in place of the isalphatetical part

<CFIF listlen(statematch) eq 2 and isAlphabetical(statematch)>

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 mailing list - http://groups.google.com/group/openbd?hl=en

 !! save a network - please trim replies before posting !!

Reply via email to