Question

1
Replies
20
Views
SaurabhS511 Member since 2015 1 post
Incessant
Posted: 1 month ago
Last activity: 1 month 2 weeks ago

Compare two strings and give percentage to it

HI All, 

I have a two string stored in 2 Parameter. Param 1 , Param 2. I have to compare them and match the string and give the percentage of match.

Scenarios1 of Req. Param 1:- Saurabh Satyarthi Param 2:-Saurabh Satyarthi...All string match hence 100% match

Scenarios 2 of Req. Param 1:- Saurabh Satyarthi Param 2:-Saurabh ...half string match hence 50% match.

Scenarios 3 of Req. Param 1:- Saurabh Satyarthi Param 2:-Saurabh Saty...more than half match hence 75% match

Scenarios 4 of Req. Param 1:- Saurabh Satyarthi Param 2:-Saur Less than half match, hence 25% match

Note***Params would be dynamic, above scenario is for illustration purpose.

Please suggest how could above scenario's be achieved.

 

Regards, 

Saurabh Satyarthi.

Pega Platform 7.4 Project Delivery Insurance Senior System Architect
Share this page LinkedIn