# Get last character of an mc instance name?

**URL:** <https://forum.kirupa.com/t/get-last-character-of-an-mc-instance-name/206586>\
**Category:** Uncategorized\
**Created:** [November 9, 2006, 4:18pm UTC](https://forum.kirupa.com/t/get-last-character-of-an-mc-instance-name/206586 "2006-11-09T16:18:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpixels](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@jpixels](https://forum.kirupa.com/u/jpixels)\
**Post date:** [November 9, 2006, 4:18pm UTC](https://forum.kirupa.com/t/get-last-character-of-an-mc-instance-name/206586/1 "2006-11-09T16:18:38Z")

</div>

Ok I know this.\_name would grab the instance name, but what about when you have something called mc\_1 or mc\_2 and so on, if I wanted to grab this last character (1,2,etc) as an integer to put in another variable? Thanks
