Paul Black writes:
> I'm working on a web site where I need to spilt a name string
> such as "Paul Black" into firstname and lastname. I'm a bit
> suprised that there is no obvious CF function to do this.
>
> What is the easiest way to split a string using CF?
>
Not taking puctuation into consideration, one may simply use:
first = listgetat("some name", 1, " ");
last = listgetat("some name", 2, " ");
However, I would recommend using regular expressions.
> Thanks. Paul
>
Regards,
Graham
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.