parseNumber = function(value, columnNumber) {
    const obj = this;

    // Decimal point
    const decimal = columnNumber && obj.options.columns[columnNumber].decimal ? obj.options.columns[columnNumber].decimal : '.';

    // Parse both parts of the number
    let number = ('' + value);
    number = number.split(decimal);
    number[0] = number[0].match(/[+-]?[0-9]/g);
    if (number[0]) {
        number[0] = number[0].join('');
    }
    if (number[1]) {
        number[1] = number[1].match(/[0-9]*/g).join('');
    }

    // Is a valid number
    if (number[0] && Number.isInteger(Number(number[0]))) {
        if (! number[1]) {
            value = Number(number[0] + '.00');
        } else {
            value = Number(number[0] + '.' + number[1]);
        }
    } else {
        value = null;
    }

    return value;
}
Trying to extract a number from a string