JSFiddle - React, Tailwind, and code Playground
JavaScript
var re = /(?:,)\s|([^=]+=\s[\w@\.\s]+|[\w].+)/gmi;
var str = 'prikey = 2, ju = 20150101, name = sdf, email = [email protected], sub = (한진해운) 2014년도 케미컬 선장, 1항기, 사 채용';
var m;
while ((m = re.exec(str)) !== null) {
if (m.index === re.lastIndex) {
re.lastIndex++;
}
console.log(m[1])
}