Loading ...
Sorry, an error occurred while loading the content.

Re: Unexpected '\' Error regex bug

Expand Messages
  • Merlin
    Message 1 of 3 , Oct 8, 2011
    • 0 Attachment
      > var rId = "123";
      > var id = /\d+/.exec(rId)[0];
      >
      > would be valid, as would
      >
      > var rId = "123";
      > var id = +(/\d+/.exec(rId)[0]); // corrected
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.