Javascript Regex Selector : I need some help with my javascript regex I need a way to select the following:

${user.name}
${user.age}

from the following html:


<!-- language: lang-html -->

        <tr>
            <td>${user.name}</td>
            <td>${user.age}</td>
          </tr>


There could be multiple <td> with different values in them and the 'user' part of the string is not always going to be user. it could be anything.

Ideally i would like them back as an array, although at the moment i'll settle for anything.


Thanks in advance,
Tom
