How to find in a string like '{$formLocation}' the 'Location' part?
<p>I created a file <code>.tpl</code>, which contains strings like <code>{$formLocation}</code>, then I put the file content in a variable <code>$content</code>. I have to get  what's between <code>{$form</code>  and <code>}</code></p>

<p>(ex. the
 '<code>Location</code>' part from the <code>{$formLocation}</code>, ). Any idea how? Maybe using regex?
Thanks.</p>
