What does the method string return when called by an Regular expression object? code example
Example: regex to get part of word nodejs
/\(\{#(.*?)#\})\)/g.exec("({#test#})")[1] === "test"
/\(\{#(.*?)#\})\)/g.exec("({#test#})")[1] === "test"