Note that there are some explanatory texts on larger screens.

plurals
  1. POpreg_match for td
    text
    copied!<p>I am trying to filter data from a webpage inside td, it's something like this:</p> <pre><code> &lt;td colspan="2"&gt;several anchor,bold and other html tags are inside this td&lt;/td&gt; </code></pre> <p>I have used this preg_match but its giving output of all other td, but in above case it is not giving any output.</p> <pre><code> preg_match("/\&lt;td colspan\=\"2\"\&gt;(.*)\&lt;\/td\&gt;/",$str,$title); </code></pre> <p>Here is full td:</p> <pre><code> &lt;td colspan="2"&gt; &lt;div align="left" style="width:370; height:315;"&gt; &lt;ins style="display:inline-table;border:none;height:280px;margin:0;padding:0;position:relative;visibility:visible;width:336px"&gt; &lt;ins style="display:block;border:none;height:280px;margin:0;padding:0;position:relative;visibility:visible;width:336px" id="aswift_1_anchor"&gt;&lt;iframe width="336" scrolling="no" height="280" frameborder="0" style="left:0;position:absolute;top:0;" name="aswift_1" id="aswift_1" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&amp;amp;&amp;amp;s.handlers,h=H&amp;amp;&amp;amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;amp;&amp;amp;d&amp;amp;&amp;amp;(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else if(h.match){w.location.replace(h)}}" allowtransparency="true" hspace="0" vspace="0" marginheight="0" marginwidth="0"&gt;&lt;/iframe&gt;&lt;/ins&gt;&lt;/ins&gt; &lt;/div&gt;&lt;p&gt; When starting out sometimes it is a good idea to write down your &lt;a href="#" style="text-decoration: underline !important;position:static;font-family:inherit !important;font-weight:inherit !important;font-size:inherit !important;" class="kLink" id="KonaLink1"&gt; &lt;font color="blue" style="color: blue !important; font-family:inherit !important;font-weight:inherit !important;font-size:inherit !important;position:static;"&gt; &lt;span style="color: blue !impor If you seriously want to take back control of your money you need to build a &lt;a href="http://ezinearticles.com/?To-Set-Up-a-Personal-Budget-Get-a-Pencil-and-Paper&amp;amp;id=1629478"&gt;Personal Budget&lt;/a&gt;. To learn more about creating a budget please visit the website &lt;a href="http://household-budget.home-choices-net.com"&gt;Household Budgets by clicking here&lt;/a&gt;. &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;!-- google_ad_section_end --&gt; &lt;/p&gt;&lt;p&gt; &lt;font style="color:02679D; font-size:12"&gt;&lt;b&gt;&lt;font color="000000"&gt;Related Articles - &lt;/font&gt; &lt;/b&gt;&lt;/font&gt; &lt;/p&gt;&lt;p&gt;&lt;table width="100%" border="0"&gt;&lt;tbody&gt;&lt;tr&gt; &lt;td align="center"&gt; &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt; &lt;/font&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/p&gt;&lt;/td&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload