get olny textnumeric, alt, src and ? from the first 100 letters. useing php
<p>example i have a $text</p>

<pre><code>&lt;p&gt;this is a link &lt;a href="/link" class="u"&gt;a link&lt;/a&gt; hello this is a text then a &lt;img src="www.link.com/image.png"&gt;. then i have something like %,$,&lt;?php etc ?&gt; but i dont wanna lose my numbers and ? sign how can we do that?&lt;/p&gt;;
</code></pre>

<p>and somehow</p>

<p>i need it just like</p>

<blockquote>
  <p>this is a link a link hello this is a www.link.com/image.png.
  text then a. then i have something
  like etc but i dont wanna lose my
  numbers and ? sign how can we do that?
  ( first 100 words )</p>
</blockquote>

<p>summery</p>

<ul>
<li>somehow delete the tags, image ( somehow change it with the src or alt instead )</li>
<li>delete $, # etc, except the '?' sign</li>
<li>get the first 100 words</li>
<li>get the numbers too</li>
</ul>

<p>for the 100 words i think <a href="http://stackoverflow.com/questions/5585947/get-a-string-before-the-first-with-php">get a string before the first &quot;.&quot; with php</a> have a great answer to it. im not quite sure useing regex or ? for this one.</p>

<p>Thanks for looking in.</p>

<p>Adam Ramadhan</p>
