Hello to all experts.. :) I'm very new in C#(and programming in general), so i apologize if my description isn't as clear as it could be. Here is my wanna-do task :doh: . I have a string let's say:
string final_word="New Bacliff Texas United States";
what i want to do is to check every possible substring of this string for a match in a database.
To be more clear, at first I'll check for the final_word string to the database,if no matches found,I want to search for the string "New Bacliff Country United",if I find a match i want to search for the string "United".If no matches found for both string i want to search for string "New Bacliff Country" and for the string "United States".If a match is found for the "United States". I will keep looking for matches in substrings of the string "New Bacliff Country",which means that i will look for "New Bacliff" and "Country","Bacliff Country" etc.At the end if no matches found for none of the substrings i will search for each word of the string. Keep in mind that i don't know in advance the size of the original string..
I hope i made my point clear.
Any ideas??I don't know what to do split the string create an array and the join array's items?? :((
Thanks for your help in advance!!!
Any answer could help me!!!!