Hello everyone,

I wondered if anyone had a VERY fast way of doing the following:

Astring = "This is my test string that can be any length"

Arraylist.add("whatever")
Arraylist.add("whatever")
Arraylist.add("whatever")
Arraylist.add("whatever")
Arraylist.add("whatever")
Arraylist.add("whatever")
Arraylist.add("whatever")

What I want to do is compare the contents of the array to the string and see if ANY of the elements match any part of the string.

I'm a bit stumped as to the quickest way to do this, any suggestions?

One point I forgot to mention is that I need to search for it as a substring its not going to be an exact match all the time.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.