<p>I need to match something in the form </p>

<pre><code>&lt;a href="pic/5" id="piclink"&gt;&lt;img src="thumb/5" /&gt;&lt;/a&gt;
</code></pre>

<p>to find the number, in this case 5, using JavaScript. I have no idea how to use regexes, so I was wondering if anyone here could help out.</p>

Nevermind, I solved it with a simple
```
```
'<a href="pic/5" id="piclink"><img src="thumb/5" /></a>'.match(/[0-9]/);
```
```