3 Replies Latest reply on Oct 10, 2006 11:21 PM by AnandMX

    Splitting a string at a space

      I've searched the forums, Googled it, Yahoo'd it, shoot, I even searched with Live.com for the first time in 4 months. I know I've seen it before, but I'm trying to find out how to stop a string at the one space before the max characters allowed.

      So say I have the string
      "Hi, my name is Sam and I am 17."
      And I want to stop it at a max of 17 characters, but not cut words, I would want it to come out like this
      "Hi, my name is Sam"

      Do you know of the function ? Sorry, this is the first time in months that I've been back (silent protest because I didn't like the Adobe/MM buyout)