How to match only numbers in a sentence
<p>Using Flickr API.</p>

<pre><code>result.items[i].published
</code></pre>

<p>Results in something like this 2012-12-21T14:36:24Z - notice the T and the Z?
How do I match only the numbers in 2012-12-21T14:36:24Z?</p>

<p>This is how it looks.</p>

<pre><code>newPic.innerHTML = "&lt;div class='pic-container'&gt; &lt;p class='title'&gt;" + result.items[i].title + "&lt;/p&gt; &lt;a href="+ result.items[i].link +" &gt;  &lt;img src=\'" + result.items[i].media.m + "\'&gt; &lt;/a&gt;&lt;/div&gt;&lt;p class='author'&gt;" +  result.items[i].author.match(/\(([^)]*)\)/)[1] + "&lt;/p&gt;&lt;p class='published'&gt;" + result.items[i].published + "&lt;/p&gt;";
</code></pre>
