How can I retrieve the word my from between the two rounded brackets in the following sentence using a regex in JavaScript?
“This is (my) simple text”
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
\(being opening brace,(— start of subexpression,[^)]+— anything but closing parenthesis one or more times (you may want to replace+with*),)— end of subexpression,\)— closing brace. Thematch()returns an array["(my)","my"]from which the second element is extracted.