How to compare two strings and get its percentage

Hi community,

I want to compare two strings and get its percentage.

for reference:

string1 : Preeti Bohra
string: Bohra Preeti

output: 100%

string1: Preeti Bohra
String2: Preeti Boh

Percentage: 70%

please help…

maybe following activity from marketplace will serve your needs:

Hi @Preeti_Bohra

Check out this thread

Regards
Gokul

Hi @ppr I tried this but it doesn’t return 100% while i reverse the second string.

image

Yes, so you have to adapt your calculation logix to the Algorithmn ones

e.g.
string1 : Preeti Bohra
string: Bohra Preeti

split the words
Order the words
then calculate the Percentage

e.g.
string1: Preeti Bohra
String2: Preeti Boh
Percentage: 70%

same actions as above, but different and unclear the 70% Formula

So just adapt / Combine the different approaches for your implementation