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