variablePattern property

RegExp variablePattern
final

Implementation

static final variablePattern =
    // what if we added a new pattern to match :{...}?
    // instead of {$...} which requires to wrap the input with quotes
    RegExp(r'(?:{)(\$?-{0,2}[\w-_]+(?::[\w-_]+)*)(?:})');