Help for this page

Select Code to Download


  1. or download this
    # if any non-english language chara in the line
    if ( $line =~ /[[:non-english_chara_class:]]/g ) {
    ...
    elsif ( $line =~ /[[:garbage_chara_class:]]/g ) {
        # do some filtering
    }
    
  2. or download this
    no warnings "experimental::regex_sets";
    my @expressions = (
    ...
    french: voilà: a word with an accent grave
    ascii: this is plain ascii
    unknown: gräßliches Tröten