I would like to find out if this pattern exists in the string. How can I achieve this?
text - text, text: text
Sample code shown below.
var myRe = new RegExp('/* - * , *: */');
var myArray = myRe.exec('Example - One, Two: Long Text, Additional Description.');
console.log(myArray);