Contact: aviboots(AT)netvision.net.il
39,988 questions
51,933 answers
573 users
const str = "['133.14', '-312.89', '247.13', '5512.45']"; const numbers = str.match(/-?\d+(?:\.\d+)?/g).map(Number) console.log(numbers); /* run: [ 133.14, -312.89, 247.13, 5512.45 ] */