1 Reply Latest reply on Feb 21, 2009 10:40 AM by Gregory Lafrance

    TextArea.replace

    orange_m
      Hi guys!

      Is it possilbe to use this function to replace all occurances of the word or sentence in the TextArea.

      For example:

      This is some text...blah blah
      http://domain.com/dfdsfsd/dasds/?ds=re2333
      Another text...blah blah
      http://domain.com/dfdsfsd/dasds/?ds=re2333
      Text Again...


      I would like to do this: textarea.replace(" http://domain.com/dfdsfsd/dasds/?ds=re2333","");
      And replace all these links not just one.

      Is this possible to do without regExp /g?