Skip to main content
Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.

Trond Ulseth

Member since Dec 11, 2008

Recent Blog Comments By Trond Ulseth

  • Ask Ben: Counting Spaces In A Given String

    Posted on Aug 24, 2006 at 5:13 AM

    This could be done for phrases as well: <cfset theString = replace("Today the times are changing, the weather is changing and there is something in the air"," the ","|","all")> <cfset count = ListLen(theString,"|") - 1> Obviously it would return wrong results if the phrase is at the be... read more »

  • Ask Ben: Counting Spaces In A Given String

    Posted on Aug 24, 2006 at 4:30 AM

    Here's my simple take on it: <cfset theString = "You are simply a vision in that dress!"> <cfset count = ListLen(theString," ") - 1>... read more »