Click to See Complete Forum and Search --> : Checking if a word or a group of words exist in a variable


telmessos
04-17-2006, 05:39 PM
Hi all,

I would like to learn if there is a function in ASP checking if a word or group of words included in a variable???

Example:

test="This is an example sentence"

I am looking for a function logic like:

if "example sentence" is in test then

Thanks

Ceyhun

Ubik
04-17-2006, 06:38 PM
if instr(test, "example sentence") >=1 then
'It's in there somewhere !
else
'It's not in there.
end if