# Remove .jpg from an array

**URL:** <https://forum.kirupa.com/t/remove-jpg-from-an-array/52624>\
**Category:** Uncategorized\
**Created:** [May 25, 2004, 9:10pm UTC](https://forum.kirupa.com/t/remove-jpg-from-an-array/52624 "2004-05-25T21:10:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snaphappy](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@snaphappy](https://forum.kirupa.com/u/snaphappy)\
**Post date:** [May 25, 2004, 9:10pm UTC](https://forum.kirupa.com/t/remove-jpg-from-an-array/52624/1 "2004-05-25T21:10:32Z")

</div>

Hi there, I am using the code below to display the amount of images in an array, and the current image.

// show total number of images in the array

\_root.curImage.text = (\_root.image\_array[this.i]);  
\_root.imageTotal.text = “/0”+\_root.image\_array.length;

It appears in a form like this: 024.jpg/060

Is there a quick and easy way to remove the .jpg so it just reads 024/60, have tried looking around but it is a kind of abstract thing to search for and I am still fairly new to arrays

Thanks in advance,

SH
