Hello I need an idea!
Currently, I am using for each row to pull out the data one by one and compare them.
The reference data is [A001] and you need to check if the value retrieved by for each is [including A001].
However, among the row data, there are two values [ABC A001] and [ABC A001L].
I tried to do it with .contains, but I need to import only [ABC A001], but I am importing values up to [ABC A001L].
(Because [ABC 001L] also includes [ABC 001])
In this case, is there any idea to import only [ABC A001]?
(What I thought was to count the number of characters in case of getting multiple values and get the value with the smallest number. )
(From d in YourDataTable.AsEnumerable
Let v = d("YourColNameOrIndex").toString
Where System.Text.RegularExpressions.Regex.isMatch(v,strPattern)
Select r = d).CopyToDataTable