I have the variable $Contents
that contains the contents of a webpage and I need to pull out the following:
Start: <div class="XXXXX">
End: <div role="XXXXX"'
The string represented by YYYYY could be numbers, characters, spaces, quotes and pretty much anything that exists on a modern keyboard.
Currently I am using this:
preg_match("/<div class=\"XXXXX\">(.*)<div role=\"XXXXX\"/", $Contents, $match);
echo "<p>Event Title: $match[1]</p>";
But getting nothing so I assume it's my regex that's the issue. Can anyone help?