Here is the file list All works well except when the number preceding the dash is 3 digits This is the current code I am using. <cfif LEFT(filename,5) EQ 'PGHAB'> <cfset thisNumber = REreplaceNoCase(trim(fileName),"(\w{4,5}\d{4}\w+)(\d{2,3})(-\d{1,2}?\.docx)",'\2','all') /> </cfif> <cfif LEFT(filename,4) EQ 'PGHA'> <cfset thisNumber = REreplaceNoCase(trim(fileName),"(\w{3,4}\d{4}\w+)(\d{2,3})(-\d{1,2}?\.docx)",'\2','all') /> </cfif>
... View more