<?xml version="1.0" encoding="windows-1252"?>
<node id="385897" title="Spidy's scratchpad" created="2004-08-25 23:27:12" updated="2005-07-20 21:54:43">
<type id="182711">
scratchpad</type>
<author id="385891">
Spidy</author>
<data>
<field name="doctext">
&lt;code&gt;
## sample input:

h1. BA1

h2. Sample Historical Item Headline

* 2005-06-14
* 2
* thumbnail.jpg
* main-image.png
* Photo courtesy
* Button text goes here... This is the text displayed in the buttons in the bottom screen grid

Main content goes here. Paragraph breaks will be rendered appropriately

Intrinsicly e-enable technically sound services before optimal benefits. Distinctively visualize cross-unit alignments via magnetic intellectual capital.

----

### sample output:

&lt;item headline="Sample Historical Item Headline" date="2005-06-14" type="2" preview="thumbnail.jpg" link="main-image.jpg" courtesy="Photo courtesy"&gt;
	&lt;intro&gt;Button text goes here... This is the text displayed in the buttons in the bottom screen grid&lt;/intro&gt;
	&lt;body&gt;&lt;![CDATA[&lt;p&gt;Continually empower reliable web services ...&lt;/p&gt;
		&lt;p&gt;Seamlessly formulate 2.0 process improvements ...&lt;/p&gt;]]&gt;&lt;/body&gt;
&lt;/item&gt;
&lt;/code&gt;

&lt;h1&gt;Current Regex Progress:&lt;/h1&gt;
&lt;code&gt;
h1\. (.+)\r\rh2\. (.+)\r\r\* (.+)\r\* (.+)\r\* (.+)\r\* (.+)\r\* (.+)\r\* (.+)\r
&lt;/code&gt;
&lt;p&gt;However, I cannot figure out how to use this regular expression to retrieve each of the paragraphs of text - so that I can wrap them into &amp;gt;p&amp;lt; tags within the output XML.&lt;/p&gt;</field>
</data>
</node>
