Get content in between apostrophes

This is how to extract a sub string within a string by apostrophes.

<?php
//within apostrophes
preg_match('/\'(.*?)\'/', "SQL Server Job: 'MPlan.Full Backup' on \\S19", $out);
// result: Array([0] => 'MPlan.Full Backup'  [1] => MPlan.Full Backup)
?>
Knowledge keywords: