Remove .jpg from an array

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