If you just want to count the number of instances of BURC, the oldskool method is simply: $count($1-,$chr(2),$chr(31),$chr(22),$chr(3))

If you want to get into counting opening but not closing control codes, then a regular expression should be appropriate.

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!