ok, even though we all should know string searching should be avoided where possible, this cannot unfortunately.

say we have these sets of strings:

temporary
permenant
temporary/permenant
contract
contract/temporary


and we are testing with a string called "perm".

how can I check to see if each one them contains that word? The complication is this:

permenant and temporary/permenant SHOULD evaluate to true, since "temporary/permenant" contains the word "perm"




I am using .NET 1.1 here for this project.