Hi team! I am struggling with regex here :joy: I ...
# ingestion
a
Hi team! I am struggling with regex here 😂 I added the $ at the end because I want an exact match of
computational.calzone.sample_table
.
Copy code
profile_pattern:
      allow:
        - ^computational\.calzone\.sample_table$
and got this error
Copy code
UnboundVariable: ': unbound variable'
Without the $ it works fine. Anyone know what might be the problem?
m
@agreeable-hamburger-38305: this is because we try to expand perceived variables in the config file. you can address this by enclosing the regex in a string and escaping the
$
sign.. so in this case:
"^computational\.calzone\.sample_table\$"
should work
a
"^computational\.calzone\.sample_table\$"
gives
Copy code
ScannerError: while scanning a double-quoted scalar
  in "<file>", line 9, column 11
found unknown escape character '.'
But
"^computational.calzone.sample_table\$"
works 🎉