Skip to Content
Former Member
Aug 22, 2005 at 06:50 AM

Pattern Matching : String Processing



I have two strings. Say source and destination.

Now I want to find out the percentage which will indicate the number of characters/words match between these 2 strings

i.e. if the 2 strings are exactly same including case sensitivity then the percentage will be 100 %

This matching should be intelligent matching. i.e. if soruce contains 'This is Test' and destination contains 'is this est'

In this case since 'this' and 'is' matches the strings should be taken in the output. also 'Test' and 'est' matches the same should be reflected.

How can I use pattern matching in this case. Does ne fm exists for pattern matching and resulting into the percentage or ne number relecting the

number of characters or words matching between 2 strings.