What is it that you're trying to do? Would converting the RTF to plain text first fix your problem?
--- On Wed, 12/17/08, Ken Dibble <[email protected]> wrote: > From: Ken Dibble <[email protected]> > Subject: [NF] Parsing Hex/ASCII out of RTF > To: [email protected] > Date: Wednesday, December 17, 2008, 11:39 AM > Hi folks, > > I understand that non-printing characters are escaped in > RTF documents with > \', and I am told that they are stored as Hex > numbers. However, there is no > tag that indicates the end of an escaped sequence. > > So something like this: > > \'18 > > may either be hex 1 (null) decimal 8 or it may be hex 18 > (cancel). > > There may be any number of escaped hex numbers and ordinary > ASCII > characters in the string I have to parse. > > I can loop through each character in the string and do all > kinds of things > with it, but I cannot for the life of me figure out how to > reliably find > the end of an escaped hex number. > > Any help would be greatly appreciated. > > Thanks! > > Ken Dibble > www.stic-cil.org > > > > _______________________________________________ > Post Messages to: [email protected] > Subscription Maintenance: > http://leafe.com/mailman/listinfo/profox > OT-free version of this list: > http://leafe.com/mailman/listinfo/profoxtech > Searchable Archive: http://leafe.com/archives/search/profox > This message: > http://leafe.com/archives/byMID/profox/[email protected] > ** All postings, unless explicitly stated otherwise, are > the opinions of the author, and do not constitute legal or > medical advice. This statement is added to the messages for > those lawyers who are too stupid to see the obvious. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

