3 Replies Latest reply on Jan 9, 2009 5:34 AM by Fred Goldman

    [JS] Return search results

    Fred Goldman Level 3
      Is there any way is JS to search a string for a RegEx and return the
      results?

      For example:
      myString = "hello2009"
      myDigits = myString.search(/\d+/)

      Currently myDigits = "0". How do I make myDigits = "2009"?