Please tell /Date(1245398693390)/ how from a line like /Date(1245398693390)/ . get 1245398693390

  • How to delete something ?? Just cut out all the numbers or just according to the template? - AivanF.

3 answers 3

 "/Date(1245398693390)/".match(/\d+/)[0] 
     "/Date(1245398693390)/".replace(/[^\d]/g,''); 

      In the current wording, regular expressions are not needed.

       '/Date(1245398693390)/'.slice(6, -2)