- or download this
$str="taaaaaaaa";
$str=~/(ta+)/; print "$1\n";
$str=~/(ta+?)/; print "$1\n";
- or download this
$str =~ m/[^<story>].*<image>(.*)<\/image>.*?[^<\/story>]/s;
## <- w/o the "?" should work
- or download this
$str=~s/\n//g;
$str =~ m%<story>.*</story><image>(.*)</image>%;