In the example below I am trying to capture the text between the two asterixes.
var str="The *rain in SPAIN* stays mainly in the plain";
var patt1=/\*...\*/;
console.log(str.match(patt1));
I'm trying to follow the example here
http://www.regular-expressions.info/examples.html
\Q...\E Matches the characters between \Q and \E literally, suppressing the meaning of special characters.
But I am having trouble following along