about string matching: I want to match 2 strings and output should be true if any portion of the strings are matched.
i have a two input string str1 = nsubjpass(intended-3, It-1) auxpass(intended-3, was-2) root(ROOT-0, intended-3) mark(allow-5, to-4) xcomp(intended-3, allow-5) amod(code-7, existing-6) str2 = nsubjpass(intended-3, It-1) auxpass(intended-3, is-2) root(ROOT-0, intended-3) mark(help-5, to-4) xcomp(intended-3, help-5) compound(code-8, reuse-6) and output should be Exact matching or (100%) matching is nsubjpass(intended-3, It-1) root(ROOT-0, intended-3) 75% matching is [ auxpass(intended-3, is-2) auxpass(intended-3, is-2)] [ mark(help-5, to-4), mark(help-5, to-4)] ...... And so on Ignore the numbers. please, any one helps me.