I am trying to use regular expression on a custom set of data, it can occur in any order
var str= "keyword2 : (content2), sas, keyword1 : (content1)"
or
var str= "keyword2 : (content2), app, keyword1 : (content1), sos, key word : (content) "
each key is separated using commas. I am trying to find the odd ones out of this, the one which doesnt have pair, like sas, app, sos and return it in to an array using regular expression.. Is it possible to acheive it using regex?