Using python to add unordered list tags to plain text file (for html output)
<p>I need to add unordered list tags around a long list of items using regular expressions if possible. This text is being pulled from a text file and processed inside a markup function which includes many different regex's to replace certain elements of the original text file with markup tags.</p>

<pre><code>* Item One
* Item Two
* Item Three
* Item Four
</code></pre>

<p>I currently have a regex function to to replace the asterix with the list tags like follows.</p>

<pre><code>    &lt;li&gt;Item One&lt;/li&gt;
    &lt;li&gt;Item Two&lt;/li&gt;
    &lt;li&gt;Item Three&lt;/li&gt;
    &lt;li&gt;Item Four&lt;/li&gt;
</code></pre>

<p>How would I add in the  tags at the beginning and ending of the list using a regex or recursive/looping process? Would I be better off doing this before or after swapping the asterix for list tags?</p>
