Gene, Many thanks for your reply Gene Wirchenko wrote: > Yes, at the level of finite state automata. It is not terribly > practical in RL because there are so many possibilities that have to > be checked. > Hmmm - I need to do some homework on finite state automata (never heard of them)
> The functions are not equivalent. The first does not define > tcReplaceChar which it uses. If tcReplaceChar were "", then the > functions would be equivalent. > Congratulations on spotting the deliberate <s> mistake - I have a version which does define and use a replace char but you are quite right about the function I posted !!! > Assuming that you want to strip out the invalid characters > replacing them with "", try: > StrippedString=chrtran(RawString,chrtran(RawString,ValidChars,""),"") > The inner chrtran() strips out the valid characters returning a > string of the characters in the original string that are > invalid. The outer chrtran() uses this string to strip out the > invalid characters. > I shall certainly take a look at your suggestion ... Paul _______________________________________________ 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.

