PHP preg_match (.*) not matching past line breaks [duplicate]

Use the s modifier.

preg_match('/Para(.*)three/s', $row['file'], $m);

Pattern Modifiers

Leave a Comment