how to write string and not regex javascript code example Example: regex to get part of word nodejs /\(\{#(.*?)#\})\)/g.exec("({#test#})")[1] === "test"