I have two Lists, they look like this
<List> ads
[0]
Headline = "Sony Ericsson Arc silver"
[1]
Headline = "Sony Ericsson Play R800I"
<List> feedItems
[0]
Headline = "Sony Ericsson Xperia Arc Silver"
[1]
Headline = "Sony Ericsson Xperia Play R800i Black"
What is the easiest way of creating a new, third list, with the elements that match each other with at least two words? Could you accomplish this in a LINQ-way maybe?
The third list would look like this
[0]
AdHeadline = "Sony Ericsson Arc silver"
MatchingFeed = "Sony Ericsson Xperia Arc Silver"
// etc
I've tried traversing the first list and used the Regex.Match class, and if I find a match I populate the third list - I'm wondering what your preferred way of doing this would be, and also how to check for min. 2+ words in the expression.