9 Replies Latest reply on Aug 29, 2007 1:53 PM by 807605

    Subject: extract the string before space

      I have a string say "aquarium a". i want to extract the string appearing before the space and discard the string appearing after space.
      that is the resultant string required is "aquarium". any number of characters can appear after space.
      is it possible to solve using replace() method. i cant hardcode space+character in replace method because number of characters after space is not known.
      Is there any easy way to get the required result