in reply to Matching first Perl statement.

See if the following meets your needs:

($match) = $file =~ /([^\"\'\`\;]*(?:[\"\'\`]+.*[\"\'\`]+)?);/;

rdfield