const signRegex = /[*\-+]/
str.match(new RegExp(signRegex, 'g')) // *, -, +
str.split(signRegex).map(Number) // 1 , 2, 3, 4
알고리즘
const signRegex = /[*\-+]/
str.match(new RegExp(signRegex, 'g')) // *, -, +
str.split(signRegex).map(Number) // 1 , 2, 3, 4