wizard999
10/1/2019 - 3:42 AM

JavaScript regex to split numbers and letters

var str = ".1abc2.5efg3mno";
var regexStr = str.match(/[a-z]+|[^a-z]+/gi);
console.log(regexStr);