# How to read part of the variable value?

**URL:** <https://forum.kirupa.com/t/how-to-read-part-of-the-variable-value/37458>\
**Category:** Uncategorized\
**Created:** [December 10, 2003, 2:25pm UTC](https://forum.kirupa.com/t/how-to-read-part-of-the-variable-value/37458 "2003-12-10T14:25:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SBUH](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@SBUH](https://forum.kirupa.com/u/SBUH)\
**Post date:** [December 10, 2003, 2:25pm UTC](https://forum.kirupa.com/t/how-to-read-part-of-the-variable-value/37458/1 "2003-12-10T14:25:41Z")

</div>

Hello, friends. I have asp code, and the variable called name  
and it is the name of the image in the format of “small\_59493.jpg”.

But I only need 59493.jpg. How should I write the code so that

I can have e.g.  
if  
name=small\_59493.jpg

how to make this new name then?  
newname=59493.jpg

Many thanks in advance!
