search and replace thousands of lines php
<p>I am very new to using preg_replace and such so please bear with me.</p>

<p>I have few hundreds line that contains this line</p>

<pre><code>&lt;strong&gt;[*&lt;a title="*" name="*"&gt;&lt;/a&gt;]&lt;/strong&gt;&lt;br /&gt; Lorem ipsum
</code></pre>

<p>* on above code denotes that number such as 1,2,3</p>

<p>What i want to achieve is that</p>

<pre><code>*. Lorem Ipsum

Example, 1. Lorem ipsum, 2. Lorem ipsum
</code></pre>

<p>What would be the best way to achieve it? Thanks.</p>

<p>sample text</p>

<pre><code>&lt;strong&gt;[1&lt;a title="1" name="1"&gt;&lt;/a&gt;]&lt;/strong&gt;&lt;br /&gt; Lorem ipsum 12345&lt;br /&gt; &lt;strong&gt;[2&lt;a title="2" name="2"&gt;&lt;/a&gt;]&lt;/strong&gt;&lt;br /&gt; lorem ipsum asdasd&lt;br /&gt; &lt;strong&gt;[3&lt;a title="3" name="3"&gt;&lt;/a&gt;]&lt;/strong&gt;&lt;br /&gt; lorem ipsum asdsadasdasdasd&lt;br /&gt;
</code></pre>

<p>it goes way up to hundreds</p>
