Find unknown string around my string
<p>I just want to find unknown text around my string between two spaces.
For example:</p>

<pre><code>$mystring = "blabalbla &lt;b&gt;sometext&lt;/b&gt; &lt;b&gt;ssssss&lt;/b&gt;"
</code></pre>

<p>What I want to do with this:</p>

<p>I know the "sometext" but I want to put in a string the </p>

<pre><code>&lt;b&gt;sometext&lt;/b&gt;.
</code></pre>

<p>But my string is always changing, forexample it can be:</p>

<pre><code>&lt;s&gt;&lt;b&gt;sometext&lt;/b&gt;&lt;/s&gt;
</code></pre>

<p>Now I need to put the whole into a string </p>

<pre><code>&lt;s&gt;&lt;b&gt;sometext&lt;/b&gt;&lt;/s&gt;.
</code></pre>

<p>So I can't use simply attaching my variable to </p>

<pre><code>&lt;b&gt;.mystring.&lt;/b&gt; 
</code></pre>

<p>beacuse in cases I can have unknown strings around it.</p>

<p>How can I do this? Or is there another way to find and delete those</p>

<pre><code>&lt;b&gt;&lt;s&gt;&lt;i&gt;&lt;/b&gt;&lt;/s&gt;&lt;/i&gt; etc....  around my string?
</code></pre>

<p>Thnaks, Creep.</p>
