To /^\Q$stack\E$/ (emphasis on the \E).
Why? If the \E comes at the end of the regex it is completely redundant. A pointless, useless addition.
In reply to Re^3: Problems with a regex?
by BrowserUk
in thread Problems with a regex?
by dwlepage
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |