$string = qq~text1text2~; if ($string =~ m|(.+)|) { print "VIEL: $1\n"; } if ($string =~ m|(.+?)|) { print "WENIG: $1\n"; }