Hi,
If I have two string :
str1 = “a,b,c”
str2 = “a,c”
How can I extract the value of b ?
I want to get the value in str1 that is not in str2
Thanks
Hi,
If I have two string :
str1 = “a,b,c”
str2 = “a,c”
How can I extract the value of b ?
I want to get the value in str1 that is not in str2
Thanks
First compare two strings wther both are equal or not if not then split str1 with , and then check if that value exist in str2 if that value not exist then take that value.
Hi there…
YourFinalString=string.Join(((",",(split(str1,",").ToList).Except(split(str2,",").ToList)))
Try thins and revert if you have further queries.
Check this xaml, I have used two string and returned the difference words alone.
CompareTwoStrings.xaml (6.2 KB)
Thanks !!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.