$test = " this is a test ";
preg_match_all("/this.*test/i", $test, $elements);
echo $elements[0][0];
I am trying to match: "is a"
Can't seem to handle new lines. Thanks!