Help for this page

Select Code to Download


  1. or download this
    $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 -> $_";
    
  2. or download this
    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'