Table of Contents

# $EPIC: strip.txt,v 1.3 2007/03/02 02:32:04 jnelson Exp $

Synopsis:

$strip(<chars> <text>)
$pass(<chars> <text>)

Technical:

Practical:

These functions can be useful to remove dangerous or unwanted characters from a text string.

Returns:

$strip(): <text> with all of the characters in <chars> removed.
$pass(): <text> with all of the characters not in <chars> removed.

Examples:

$strip(aeoiu hello there)            returns "hll thr"
$pass(aeoiu hello there)             returns "eoee"

History:

This function originally appeared in ircII-2.1.5