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