Extract word from string using jquery or javascript
<p>I would like to extract word from tag like</p>

<pre><code>&lt;li&gt;{firstname} {last name}&lt;/li&gt;
</code></pre>

<p>So, can I get extract strings "firstname" and "last name" using javascipt or jquery?</p>

<hr>

<p>Actually I think I have made some mistake to explain.</p>

<p>my String looks like</p>

<pre><code>&lt;li&gt;&lt;a href="#contactDetail"&gt;{firstname} {lastname}&lt;/a&gt;&lt;/li&gt;
</code></pre>

<p>here i would like to know how many parameters available means {first..} {last...} that can be only {fi..} and I would like replace with some other parameters.</p>

<p>So, I have a list of array which includes many parameters like firstname, lastname, address and so on... now I would like to replace that with according to what i will get from string.</p>

<p>Hopefully, I have tried my best to explain my problem.</p>
