select string with specific character in regular expression <p>Given the following text of example:</p> <blockquote> <p>Hello <code>$NAME$</code> how are you? You are visiting this <code>$LOGIN_PAGE$</code> page, please fill the form and log in.</p> </blockquote> <p>I want to select only the following "variable" <code>$LOGIN_PAGE$</code> without select even the <code>$NAME</code> character.</p> <p>I made this regex trying to achieve the result but it select both of the string</p> <pre><code>(\$([A-Z\_])+\$) </code></pre> <p>Which part I'm missing in this regex?</p>