in reply to Hexadecimal character references not understood inside a regex
perl -CO -wE ' for my $s ( "á", do { use utf8; "á" } ) { say $s, $s =~ $_ ? 1 : 0 for qr/\xc3\xa1/, qr/\xe1/ }' [download]
Output in a utf-8 terminal:
á1 á0 á0 á1 [download]