in reply to Re^2: variables in regex character classes
in thread variables in regex character classes

If you use Unicode, you don't need to set a locale. And using Unicode is much better than setting a locale.
But it's better to specify
use utf8;
instead of use encoding 'utf8';.

On Unicode data \b, as well as the /i switch, will work as expected. And if you are not sure about the character ranges, it's of course better to type the alphabet.

Good luck!

     s;;Just-me-not-h-Ni-m-P-Ni-lm-I-ar-O-Ni;;tr?IerONim-?HAcker ?d;print