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) simple text"
console.log( "This is (my) simple text".match(/(([^)]+))/)[1] );
2.1m questions
2.1m answers
60 comments
56.9k users