Assign activity -> in_company_name_from_registration As String = "Test GmbH"
Assign activity -> strKundenName_Trefferliste As String = "TEST Bau GmbH"
Assign activity -> isSimilar As Boolean = in_company_name_from_registration.Split(" "c).Any(Function(word) strKundenName_Trefferliste.ToLower().Contains(word.ToLower()))
If
isSimilar
Then
Console.WriteLine("The strings are similar.")
Else
Console.WriteLine("The strings are not similar.")
End If
We recommend to resharpen the translation of the use case to its implementation strategy (einmal durchatmen und das ganze von einem Schritt zurück betrachten)
taking out parts like GmbH, Gbr… again would lead to the following failure
In my case, I get a kind of rough filter via a grid, where I can exclude the company name for the time being. If I get a hit, as in the example Müller Gmbh is not Müller Gbr, the RPA then opens the entry and receives further check criteria. I could therefore exclude the company name.
I apologise for my late reply. I have just tested it and at first glance it works as desired. Now I would like to query the hit via a flow desicion, how can I achieve this?
Assign
IgnoreList = new List(of String) From {‘GmbH’, ‘GBR’, ‘AG’, ‘Co.’}
result = str1.Split(‘’c).Intersect(str2.Split(‘’c),StringComparer.CurrentCultureIgnoreCase).Except(IgnoreList).ToList