Leser: 23
tr/,€ /./d
2009-11-11T17:03:36 lichtkindCode (perl): (dl )tr/,€ /./d
tr/,€ /./d
my ($n1, $n2) = $string =~ m/(\d+),(\d+)/;
my $num = "$n1.$n2";
$string =` s/.*(\d+),(\d+).*/$1.$2/;
1
2
3
4
5
6
7
8
9
my $str = 'EUR 1,84';
# 1. Zahl ermitteln
my ($num) = $str =~ m/([\d,]+)/;
# 2. Komma in Punkt wandeln
$num =~ tr/,/./;
print $num;