Is there any way or in-built function in clover to find the matching characters in 2 strings.
(ie) compare the contents of two strings and return a string containing characters that appear in both of them.
Eg:
If I have str1 = “AXBYCZ”, str2 = “ABCDEF”
Then output should be = “ABC”
Also in similar lines if we compare 2 strings - if the first string content is same as the output then return TRUE.
(ie)
Eg:
If I have str1 = “ABC”, str2 = “AXBYCDEF”
Then output should be = 1
If I have str1 = “AXBYCZ”, str2 = “ABCDEF”
Then output should be = 0
Is there any way or built-in function in Clover to acheive the above 2 tasks?