Member predicate TemplateSyntaxInStringLiteral::CandidateStringLiteral::getAReferencedVariable

Extracts a ${...} part from this string literal using an inexact regular expression.

Breakdown of the sequence matched by the expression:

  • any prefix and then ${
  • any amount of whitespace and simple unary operators
  • name of the variable
  • optionally: a character terminating the identifier token, followed by anything
  • }, followed by anything
string getAReferencedVariable()