2 Replies Latest reply on Aug 26, 2010 3:22 PM by myDwayneSmith

    [AS CS4] separating sections of a text string

    myDwayneSmith Level 1

      Hi All


      Sorry for asking such a very basic question — but I can't for the life of me remember how it's done.


      I've got three text strings — "big turtle", "great big turtle" and "great big huge turtle"

      Using a 'space' as text item delimiter I can easily capture "turtle" as a separate string


      How do I most easily capture everything up until that last space (ie. "big", "great big", etc.)

      I'm assuming that looping through the remaining space delimited text items is the slow way


      Many thanks for any help