I was wondering would it be productive to create this Function using StringRegExp() instead? And I've tried searching on stackoverflow.com & regexadvice.com with little success of what Pattern I should use. Thanks. MsgBox(64, "_IsExcluded()", _IsExcluded("C:\Program Files\Opera.exe", "opera.exe;autoit.exe;SciTE.exe")) Func _IsExcluded($sFileName, $sExcluded = "opera.exe;autoit.exe;SciTE.exe") Local $aStringSplit = StringSplit($sExcluded, ";") For $A = 1 To $aStringSplit[0] If String