code: function stringToMatrix(source) {
    // remove matrix wrapper and split to individual numbers
    source = source
      .replace(SVG.regex.whitespace, '')
      .replace(SVG.regex.matrix, '')
      .split(SVG.regex.matrixElements)
  
    // convert string values to floats and convert to a matrix-formatted object
    return arrayToMatrix(
      SVG.utils.map(source, function(n) {
        return parseFloat(n)
      })
    )
  }
docs: Convert string to matrix