Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>trimpunct() - trim non-alpha characters from a string</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     trimpunct() - trim non-alpha characters from a string
  Usage:    <string> = trimpunct(<string>)
  Params:   string <string> - the string to scan
  Returns:  a string equal to <string> with all non-alphanumeric
            characters removed from beginning and end of <string>
            or null if no alphanumeric characters are found

 ---------------------------------- Example ---------------------------------

                 ? trimpunct("!!!!@@##@@TEXT****")
                 * prints "TEXT"

                 ? trimpunct("00702-    ")
                 * prints "00702"
                 * useful for getting rid of that last dash
                 * when the user does not enter a 10 digit zip

  Note:     High ascii foreign characters are considered to be
            alphanumeric.


See Also: chrswap() chrcount()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson