# Using a portion of an instance name

**URL:** <https://forum.kirupa.com/t/using-a-portion-of-an-instance-name/303725>\
**Category:** Uncategorized\
**Created:** [January 26, 2010, 2:26am UTC](https://forum.kirupa.com/t/using-a-portion-of-an-instance-name/303725 "2010-01-26T02:26:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m2244](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@m2244](https://forum.kirupa.com/u/m2244)\
**Post date:** [January 26, 2010, 2:26am UTC](https://forum.kirupa.com/t/using-a-portion-of-an-instance-name/303725/1 "2010-01-26T02:26:29Z")

</div>

I am trying to use a MC instance name inside of a function from an event listener. How the hell do I use only part of the instance name

example:

MC instance names are “size1”, “size2”, etc.

I want the numbers only.

I have been looking for hours. Thanks in advance.
