What best practices should be followed when dealing with multi-line patterns in PHP regular expressions?

When dealing with multi-line patterns in PHP regular expressions, it's important to use the `s` modifier to ensure that the dot `.` matches newline characters as well. This allows you to match patterns that span across multiple lines in a string.

// Example of using the s modifier to match multi-line patterns
$string = "Line 1\nLine 2\nLine 3";
$pattern = '/Line.*3/s';
if (preg_match($pattern, $string, $matches)) {
    echo "Match found: " . $matches[0];
} else {
    echo "No match found.";
}