Cutting out the beginning and end of a string, keeping the middle

I’ve got a string that looks like this:
http://www.colourlovers.com/palette/269546/want_to_hike

The only part I need is the numbers, 269546.

How can I remove the beginning and end of the string to leave me with just the numbers in AS3?

Any help or direction would be awesome.