in reply to Re^4: Problem with regex wildcard operator (.)...?
in thread Problem with regex wildcard operator (.)...?
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: <%-{-{-{-<
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Problem with regex wildcard operator (.)...?
by Marshall (Canon) on Sep 06, 2021 at 07:35 UTC | |
by AnomalousMonk (Archbishop) on Sep 06, 2021 at 08:30 UTC | |
by Marshall (Canon) on Sep 06, 2021 at 09:02 UTC | |
by afoken (Chancellor) on Sep 06, 2021 at 17:47 UTC | |
by Marshall (Canon) on Sep 08, 2021 at 06:50 UTC | |
|
In Section
Seekers of Perl Wisdom