formatterFromString = function formatterFromString(formatter) {
  return formatter.split('').map(function (_char) {
    if (_char === '#') {
      return /\d/;
    }
    if (_char === '*') {
      return /[\w]/;
    }
    return _char;
  });
}
--------------------------------------------------------------------------------------------
Helper function for getFormatter
@param {*} formatter
@returns