# Extract Number inside a String

**URL:** <https://forum.kirupa.com/t/extract-number-inside-a-string/287820>\
**Category:** flash\
**Created:** [May 6, 2009, 5:34pm UTC](https://forum.kirupa.com/t/extract-number-inside-a-string/287820 "2009-05-06T17:34:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruiganga](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ruiganga/32/3679_2.png) [@ruiganga](https://forum.kirupa.com/u/ruiganga)\
**Post date:** [May 6, 2009, 5:34pm UTC](https://forum.kirupa.com/t/extract-number-inside-a-string/287820/1 "2009-05-06T17:34:10Z")

</div>

HI

I have the following string that is loaded from an API in a External site.

var myString:String = ‘code=“33”, format=“jpg”’;

How can I extract the 33 or the JPG inside the String. I know the String format is always the same, only the values are changed time to time. I need to extract does values dynamicaly.

thanks
