I am not sure why your code seems to work.
It works because \[ is just an escaped [, so tr/\[A-Z]/[a-z]/ is translating [ to [, ] to ], and uppercase to lowercase. Any other character, e.g., \, is unaffected.
Give a man a fish: <%-{-{-{-<
In reply to Re^5: Problem with regex wildcard operator (.)...?
by AnomalousMonk
in thread Problem with regex wildcard operator (.)...?
by sbrothy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |