 <p>It really depends on how much this format might change over time and what you want to rely on as constant. If you want to assume that your html will always start with <code>&lt;div class="plugin-block"&gt;</code> and the text you want will always be on a line after an h3, you can do something like this:</p> <pre><code>$pattern = '/plugin-block(?:\n|.)*?&lt;\/h3&gt;\s*(.+)/'; preg_match($pattern, $html, $matches); echo $matches[1]; //**Intergrate Sailthru API functionality into your WordPress blog.** </code></pre>