I need to match text in a file that contains a variable wrapped in special characters.
Ex:
#{VARIABLE_A}#
#{VARIABLE_A_EXAMPLE}#
it should NOT match these
#{VARIABLEA}#
#{_VARIABLE_A}#
#{_VARIABLE_A_}#
#{VARIABLE_A
VARIABLE_A}#
#{}#
#{_}#
what I tried
#{\w{3}}#
/\w+\#{[}#]+)\)/g
#\\w+\\b
#{\w+}#
Can someone explain how the answer is derived