HI, i use the following code to check if invalid character is on the file name and when i test it with file name consist / or @, i got myMatch=nil and does not give me an error…
DIM tmp as string
DIM rg AS New RegEx
DIM myMatch AS RegExMatch
rg.SearchPattern=" [^/\\.,!@#$%]*"
tmp=REPLACE(replace(item.name,".jpg",""),".JPG","")
myMatch=rg.search(tmp )
if myMatch <> Nil then
msgbox "Invalid characters in [" + tmp + "]"
END IF