my $string = qq*here the text goes and text continues*; my ($match) = $string =~ /(.*)(?=)/;