![]() |
![]() |
5 Einträge, 1 Seite |
my @links = ($content =~ /foto=([0-9]+)&/g);
1 2 3 4 5 6 7
#!/usr/bin/perl -w use strict; my $content = 'foto1=8&foto2=40&'; my (%hash, $skip, $old); map { $skip++; $hash{$old} = $_ unless($skip == 1); $skip = 0 if ($skip == 2); $old = $_; } ($content =~ /foto(.)=([0-9]+)&/g); print "Foto '$_' hat den Wert '$hash{$_}'\n" for (keys(%hash));
foto(.)
foto(\d+)
my %hash = $content =~ /foto(\d+)=([0-9]+)&/g;
![]() |
![]() |
5 Einträge, 1 Seite |