<@KEEP>
Syntax
<@KEEP STR=string
CHARS=char [ENCODING=encoding]>
Description
Returns the string specified in STR
stripped of all characters except those specified in CHARS.
The operation of this meta tag is case sensitive. To retain both upper
and lower case variations of a character include both characters in
the CHARS.
Each of the attributes to <@KEEP>
may include both literal values and meta tags that return values.
Examples
<@KEEP STR="The quick fox"
CHARS="aeiou">
This example evaluates to "euio".
<@KEEP STR="$200.00"
CHARS="0123456789.">
This example evaluates to "200.00".
<@KEEP STR="This is the HTML"
CHARS="TH">
This example evaluates to "THT".
<@KEEP STR="<COLUMN
NAME=Invoice.totalcost>" CHARS="0123456789.">
This example returns the value in the total
cost column, stripped of any non-numeric characters.
See Also
Encoding
Attribute
<@OMIT>
|