preg_match('/^foobar3.+foobar6$/s', ...)
Are you sure you want the "^" and "$" anchors? This pattern wouldn't match the text you posted above, since it starts with foobar1, not foobar3; and ends with foobar10, not foobar6.
<?php
$text = "
foobar1
foobar2
foobar3
foobar4
";
if (preg_match('/foobar2s*foobar3/', $text)) {
echo "Matchedn";
} else {
echo "Not matchedn";
}
?>
If it is not released under ANY license whatsoever, then it is PUBLIC DOMAIN. That means that anyone can take it, modify it and use it without asking for permission of any kind and/or contacting the author, or in this case creator.
you can turn on Smarty Debugging to check out the Smarty variables available per page