Try: put "*THISISMYTEXTTOFIND*" into tTarget put “abcdefghijkTHISISMYTEXTTOFINDlmnopqrstuvwxyz” into tLargeTextString put tLargeTextString into pText filter pText with tTarget into tFilteredTextResult answer "tFilteredTextResult = " & tFilteredTextResult Or more simply: filter tLargeTextString with "*THISISMYTEXTTOFIND*" into tFilteredTextResult