i love tokenat very very much
my english not good at all
here is what my suggest
[attachment=1:2i0unitq][/attachment:2i0unitq]
[attachment=0:2i0unitq][/attachment:2i0unitq]
(PS:tokenat slow for >20mb text)
=================
tokenat(src, index, separator)
Return the Nth token from src, splitting the string by separator. For example, tokenat("apples|oranges|bananas", 1, "|") returns oranges.
=================
tokencount(src, separator)
Count how many tokens occur in src using separator. For example, tokencount("apples|oranges|bananas", "|") returns 3.
=================