How can I retrieve the word my from between the two rounded brackets in the following sentence using a regex in JavaScript?
my
\"This is (my
var txt = "This is (my) simple text"; re = /\((.*)\)/; console.log(txt.match(re)[1]);
jsFiddle example