I know it's very unlikely to be an issue but isn't it better to be sure?
You're not sure. Randomly throwing extra backslashes into your regular expression because you worry that someday someone might port the code to a different regular expression engine that you don't know about right now (and you can't predict which regex engine that is or when this might happen) is superstition. Is that the best use of your time?
Besides that, the substantive differences in a different language or a different version of Perl are more important and they'll require more work and more thinking than surface-level syntax.
(Besides that, Perl 6 has a Perl 5 regex compatibility mode.)
In reply to Re^3: Should I escape all chrs in a regex?
by chromatic
in thread Should I escape all chrs in a regex?
by MikeKulls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |