You may find RTF::Tokenizer helpful.
In reply to Re: working with Rich Text by GrandFather in thread working with Rich Text by k8vwo1