title: Coldfusion - Simple HTML Parsing
body: <p>We currently have some articles that get posted onto our site. they can appear with the following types of html</p>
  
  <pre><code>&lt;p&gt;this is an article&lt;br&gt;
  &lt;img src="someimage"&gt;
  &lt;/p&gt;
  
  &lt;p&gt;this is an article&lt;br&gt;
  &lt;img src="someimage"&gt;
  &lt;/p&gt;
  
  &lt;p&gt;this is an article&lt;br&gt;
  &lt;img src="someimage"&gt;
  &lt;/p&gt;
  
  &lt;p&gt;this is an article&lt;br&gt;
  &lt;img src="someimage"&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;p&gt;&lt;img src="someimage"&gt;
  this is an article&lt;br&gt;
  &lt;/p&gt;
  &lt;p&gt;this is an article&lt;br&gt;
  &lt;img src="someimage"&gt;
  &lt;/p&gt;
  &lt;p&gt;&lt;img src="someimage"&gt;
  this is an article&lt;br&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>Some other html tags may be inside this sometimes, I cant get my head around how to scrape the page using coldfusion to achieve this</p>
  
  <p>Esentially what i need to do is grab hold of the first paragraph text and image and be able to arrange it.</p>
  
  <p>Is this possible using Coldfusion 8 ? Would anyone be able to point me in the direction on how to learn this ?</p>