Hi I have a varying URL similar to: 
`http://farm4.staticflickr.com/3877/[image_id]_[secret].jpg`

e.g. `http://farm4.staticflickr.com/3877/14628998490_233a15c423_q.jpg`

I need to extract `image_id` that's first set of numbers (i.e. **`14628998490`**) before an underscore from `14628998490_233a15c423_q.jpg` between the whole URL

Is there a good way to extract `image_id`?

Right now I am going to use:

```
var image_id = image_url.match(/[\/]([0-9]+)_/)[1]

```