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

**URL:** <https://forum.kirupa.com/t/cutting-out-the-beginning-and-end-of-a-string-keeping-the-middle/266661>\
**Category:** Uncategorized\
**Created:** [July 23, 2008, 4:36am UTC](https://forum.kirupa.com/t/cutting-out-the-beginning-and-end-of-a-string-keeping-the-middle/266661 "2008-07-23T04:36:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![serostar](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@serostar](https://forum.kirupa.com/u/serostar)\
**Post date:** [July 23, 2008, 4:36am UTC](https://forum.kirupa.com/t/cutting-out-the-beginning-and-end-of-a-string-keeping-the-middle/266661/1 "2008-07-23T04:36:54Z")

</div>

I’ve got a string that looks like this:  
[http://www.colourlovers.com/palette/269546/want\_to\_hike](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.
