Does Coldfusion have a split function
Tags: Coldfusion
A while ago there was a question in one of the mailing lists that asked if there was an equivalent to the JavaScript split function.
Apart from the obvious way of doing it:
myString = "sales_2356_89_3";
listToArray(myString,"_");
listToArray(myString,"_");
There is also the underlying java method to do it as well.
<cfset myString = "sales_2356_89_3" />
<cfdump var='#myString.split("_")#' />
<cfdump var='#myString.split("_")#' />
This is more of a reference for people to be able to Google search than to point out anything new.
-
thank you!
# Posted By aaron mclean | 4/19/12 1:55 PM



TweetBacks