Getting a random string within a string
<p>I need to find a random string within a string.</p>

<p>My string looks as follows </p>

<p>{theme}pink{/theme} or {theme}red{/theme}</p>

<p>I need to get the text between the tags, the text may differ after each refresh.</p>

<p>My code looks as follows</p>

<pre><code>$str = '{theme}pink{/theme}'; 
preg_match('/{theme}*{\/theme}/',$str,$matches);
</code></pre>

<p>But no luck with this.</p>
