thanks jethro,
but still its unfinished coz,
$var1= ab_db_1.xml
when print $var1 is given i need result as,
ab_db_thumb_1.jpg
kindly note the difference.
You have been given the approach that you would use. See perlre for more information. To get more assistance, please show what you have tried. We try to teach you how to do your work -- we do not do your work for you.