searching a string using a list

Hi,
Please Help!!
I’m trying to search a string using a list but I know my syntax is not correct.

set thefile to choose file

set acceptedissuelist to {"01/04/2007", "01/05/2007", "01/06/2007", "01/07/2007", "01/08/2007", "01/09/2007", "01/10/2007", "01/11/2007", "01/12/2007"} as string

set f to (open for access thefile with write permission)
set theText to read f
close access f
theText

if theText contains acceptedissuelist then
	
	display dialog "accepted issue date!"
	
end if

I know that at the moment that my string has to contain every item of acceptedissuelist else it won’t do anything but I need it to do something if it contains any item of acceptedissuelist.

Please ignore last post, I,m just being a bit :stuck_out_tongue:

set thefile to choose file

set acceptedissuelist to {"01/04/2007", "01/05/2007", "01/06/2007", "01/07/2007", "01/08/2007", "01/09/2007", "01/10/2007", "01/11/2007", "01/12/2007"}
set itemlist to number of items of acceptedissuelist

set f to (open for access thefile with write permission)
set theText to read f
close access f
theText

repeat with i from 1 to number of items in acceptedissuelist
	set this_item to item i of acceptedissuelist
	if theText contains this_item then
		display dialog "accepted issue date!"
	end if
end repeat

Thanks for looking :smiley:

What’s the question?