- or download this
$str =~ m{<item><i>(.*?)</i></item>}
- or download this
$str =~ m{<item><i>(.*?)</i></item>}g
- or download this
my @x = $str =~ m{<item><i>(.*?)</i></item>}g;
- or download this
my @x;
while ($str =~ m{<item><i>(.*?)</i></item>}g) {
push @x, $1;
}