Contact: aviboots(AT)netvision.net.il
41,604 questions
54,252 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 ] */