I want extract this line
<p>@include{"portal.shared.blook"}</p>
using
preg_grep("/(\s*@include.*)/",explode("\n", $Source))
from this source code
<html>
<head>
<title>hi</title>
</head>
<body>
<h1>Hi I am layout</h1>
<br>
<p>@include{"portal.shared.blook"}</p>
@require{"portal.shared.footer":"[main]"}
Some times the code has whitespace and I can not handle it
@include{"Some Text here"}
` – Thamilhan Nov 11 '15 at 07:03tag
– A.H Nov 11 '15 at 07:06/', '', preg_replace('/
/', '', $string));` – Mads Marquart Nov 11 '15 at 07:08