tokencount("Mg+++", "+") returns 4
tokencount("Mg++", "+") returns 3
tokencount("Mg+", "+") returns 2
tokencount("Mg", "+") returns 1
tokencount("M++", "+") returns 3
Alright, so it seems safe to say, that for my purpose that would work.. Thank you for taking time to answer :-)
Regards
Engberg