# Splitting a URL string

**URL:** <https://forum.kirupa.com/t/splitting-a-url-string/273359>\
**Category:** flash\
**Created:** [October 14, 2008, 7:40pm UTC](https://forum.kirupa.com/t/splitting-a-url-string/273359 "2008-10-14T19:40:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixel\_chick](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@pixel\_chick](https://forum.kirupa.com/u/pixel_chick)\
**Post date:** [October 14, 2008, 7:40pm UTC](https://forum.kirupa.com/t/splitting-a-url-string/273359/1 "2008-10-14T19:40:57Z")

</div>

I have the following url that I am capturing in Flash. [http://localhost:47/images/imageMap.aspx?data=16&type=rs&efr=97](http://localhost:47/images/imageMap.aspx?data=16&type=rs&efr=97). I need to capture the number from data(16 in this case) and can’t quite figure it out. If I do a split on ‘=’ it gives me 16&type, I just need the 16. The url will change and so will the number of digits for the data number.

Thanks!
