my $str =" This is a very good site for regular Expressions. Very helpful. Thanks. "; #print"$str\n"; $str =~ m#(.*?)#gis; my $matched_output = $1; #print"\n$matched_output\n";