Hi! I have this string
stringa={stringa1; stringa2; stringa3; stringa4};stringa1='{a(abc)(ac)d(cf)}';stringa2='{(ad)c(bc)(ae)}';stringa3='{(ef)(ab)(df)cb}';stringa4='{eg(af)cbc}';
and I want to find per every string (stringa1, stringa2 ..) the number of 'ab' 'ba'. a and b not must be consecutive. I try strfind but it's not give me the right answer. Can you help me? Thanks
Best Answer