in reply to Regular Expression

You wouldn't use regular expressions to test for the existance of the files.

if ( -f $DIR.'/TEST-246.92.00.tar.gz' or -f ${DIR}.'/TEST-246.92.00-IN +TERNAL.tar.gz') { # your processing goes here }