Thread match anhand von unicode control code (10 answers)
Opened by miwieg at 2018-01-14 13:05

GwenDragon
 2018-01-14 16:19
#187913 #187913
User since
2005-01-17
14555 Artikel
Admin1
[Homepage]
user image
[code]use strict;
use warnings;

use 5.010;
use utf8;

# Beispiele für Matches:
# - Smiley: \x{263a}
# - Crossed fingers: \x{f91e}

my $line = "☺";
if ($line =~ /\x{263a}/) { say "Smiley"; }

$line = "
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread match anhand von unicode control code