SPUG: Odd characters in string

Eric.D.Peterson at alltel.com Eric.D.Peterson at alltel.com
Thu Jan 25 14:34:23 PST 2007

How can I count the number of odd (non-alphanumeric, on control)
characters in a string?   

For example:  a string "aAA$%\/1
50" has  3 numeric, 3 alphabetic, 1 (or 2) control/whitespace (\n or two
\r\n) and 4 odd characters. I thought maybe a RegEx but I keep getting
lost with the character escaping.


The information contained in this message, including attachments, may contain 
privileged or confidential information that is intended to be delivered only to the 
person identified above. If you are not the intended recipient, or the person 
responsible for delivering this message to the intended recipient, Alltel requests 
that you immediately notify the sender and asks that you do not read the message or its 
attachments, and that you delete them without copying or sending them to anyone else. 

More information about the spug-list mailing list