function multDivParser(inputStr) {
    var match = inputStr.match(MULT_DIV_REGEX);
    if(match) return { key: match[1], op: match[2], number: Number(match[3]) };
    return { key: inputStr, op: null, number: null };
}
Substitute values from an object into a string

Examples:
 Lib.templateString('name: %{trace}', {trace: 'asdf'}) --> 'name: asdf'
 Lib.templateString('name: %{trace[0].name}', {trace: [{name: 'asdf'}]}) --> 'name: asdf'

@param {string}  input string containing %{...} template strings
@param {obj}     data object containing substitution values

@return {string} templated string