Ah, didn't even think about using ref/deref to do so. In that case, to match correctly:
/\Q@{[EXTENSION]}\E\z/
In reply to Re^3: constants within regular expression?
by Coruscate
in thread constants within regular expression?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |