Let>fileandpath=C:\aaatest1\imagesout\mark detect form sample_page_01_image_0001.tif
//Gets file name
Let>Pattern=([0-9a-z_-\s]+[\.][0-9a-z_-\s]{1,4})$
RegEx>%Pattern%,%fileandpath%,0,matches,num,0
MDL>matches_1
//Gets file name extension
Let>Pattern=\w*$
RegEx>%Pattern%,%fileandpath%,0,matches,num,0
MDL>matches_1
//Confirms Path
Let>Pattern=(?:(?#drive)\b[a-z]

MessageModal>matches_1