JSFiddle - React, Tailwind, and code Playground

JavaScript

var input = "-8.075090 -35.893450( descr)";
    var ptrn = /[-+]?[0-9]*\.?[0-9]+/g;
    var match;
    while ((match = ptrn.exec(input)) != null) {
        alert(match);
    }