I have this assign:
drCorrespondingRow = dtCorrespondingTab.AsEnumerable.Where(function(x) Regex.Replace(x(0).ToString,“(\r?\n)“,”“).ToLower.Contains(Regex.Replace(strKeyArea,”(\r?\n)”,“”).ToLower)).FirstOrDefault
What this is doing is finding the variable in the data table that is the same as the data row variable. Is there a way of adjusting the to specify a text match? At the moment if the spacing in the variables is different but the text is the same it will come out as no match - what I would like it to do is check the text and see if it matches.
Is there a way of configuring the above code to achieve this?