Regular Expression to replace word from String
<p>All i have to replace dynamically even i don't know which string would be arrive between this two % sign also replaced value is dynamically arrived.</p>

<p>for Example :</p>

<pre><code>this is %XXXX%
</code></pre>

<p>now i want to replace word between two percent sign like </p>

<pre><code>this is tttt
</code></pre>

<p>Please suggest which regular expr i have to use for same</p>
