I'm using preg_* in PHP to search for the pattern <!-- %{data=THIS GETS MATCHED}% -->
and pull out the matched text.
The pattern for this is:
preg_match('#<!-- %{' . $knownString . '\s*=\s*(.*?)}% -->#', ...)
What I would like it to do is search across multiple lines for the string. For example:
<!-- %{data=
THIS GETS
MATCHED AND
RETURNED
}% -->
How can I edit my current pattern to have this search ability?