# Create var from stripped var?

**URL:** <https://forum.kirupa.com/t/create-var-from-stripped-var/214189>\
**Category:** Uncategorized\
**Created:** [January 26, 2007, 4:47am UTC](https://forum.kirupa.com/t/create-var-from-stripped-var/214189 "2007-01-26T04:47:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karmakat](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/karmakat/32/476_2.png) [@karmakat](https://forum.kirupa.com/u/karmakat)\
**Post date:** [January 26, 2007, 4:47am UTC](https://forum.kirupa.com/t/create-var-from-stripped-var/214189/1 "2007-01-26T04:47:45Z")

</div>

Hi…

this should be a quickie…

Can anyone tell me how to strip the last digit (the number) from a var value that looks like this: \_root.my\_mc1  
\<karmakat\> and make it another var

ie. if a var, say **myclip** happens to be equal to \*\*\_root.my\_mc1 \*\*for instance, how can i make a var that strips this variable of **\_root.my\_mc** and return **1**

thanks!

-karmakat:p:
