var prefix = ‘.’
var str = ‘.kick blah 1 2 3’.match(${prefix}kick (.*) (.*)
);
console.log(str)
result:
[ 'blah 1 2', '3', index: 0, input: '.kick blah 1 2 3', ]
I wanted result to be
[ 'blah', '1 2 3', index: 0, input: '.kick blah 1 2 3', ]
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
var prefix = ‘.’
var str = ‘.kick blah 1 2 3’.match(${prefix}kick (.*) (.*)
);
console.log(str)
result:
[ 'blah 1 2', '3', index: 0, input: '.kick blah 1 2 3', ]
I wanted result to be
[ 'blah', '1 2 3', index: 0, input: '.kick blah 1 2 3', ]