cleanwith() Function

Returns the specified text, minus any characters not in the list of valid characters. (Performs the opposite function of "stripwith".)

Syntax

cleanwith( text, with )

text: (Text) The text to be "cleaned" for printing purposes.

with: (Text) The text allowed in the "cleaned" result.

Returns

Text

Examples

You can experiment with this function in the test box below.

Test Input

cleanwith("text string","xt") returns txtt

cleanwith("text string","x t") returns txt t

See Also

stripwith(): Use this function to perform the opposite to the cleanwith() function.

FEEDBACK