in reply to regular expression to retrieve text within single quotes
my $newstring = ''; while ($string =~ /(\'|\")(.*?)\1/) { $newstring .= $2; } [download]