$PATH = 'C:\Documents and Settings\darshan\Desktop\logo1.gif'; $PATH =~ /.*?(\w*?[\.].*)/s; print $1;