I am using visual c# to write a program of matching words from a word-list. I need to match the letters of a string with another string and if it satisfies then I will select those.
i.e.: 1st example: 1st string: "LANE" 2nd string: "CLEAN"
2nd example: 1st string: "AGED" 2nd string: "CAGED"
3rd example: 1st string: "AGED" 2nd string: "RAGE"
4th example: 1st string: "CANCEL" 2nd string: "CONCEAL"
For me, the 1st and 2nd example both should come out to be true. But the 3rd one should be false.
What I could do so far is that I can get the 2nd example return true with string.contains() method. Please help me get the 1st example true as well.
Many Thanks in advance.
I have added another example. the 4th one. Please help.