Help for this page
$x="b\xe2r.a\xe2.bar"; $_=$x; s/[a\xe2][a\xe2]/\xe2/; print "first try: $x -> $_"; $_=$x; s/[a\xe2]{2}/\xe2/; print "second try: $x -> $_";
binmode STDOUT, ":utf8"; print "\xe2\n"; # 'a' with circumflex accent (as a single character) print "a\x{0302}\n"; # 'a' followed by 'COMBINING CIRCUMFLEX ACCENT'