Core Function CSetDel
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> CSetDel( <expression>, <charset>, <case> ) </pre> === Description === Delete all characters found in the charset from a string . === Parameters === ==== expression ====...")
Newer edit →
(Created page with "<pre> CSetDel( <expression>, <charset>, <case> ) </pre> === Description === Delete all characters found in the charset from a string . === Parameters === ==== expression ====...")
Newer edit →
Revision as of 18:41, 5 August 2014
CSetDel( <expression>, <charset>, <case> )
Contents |
Description
Delete all characters found in the charset from a string .
Parameters
expression
The string to use.
charset
A string of chars to compare and delete from the string.
case
Optional; If this param exists the match will be case insensitive regardless of what you place in this param.
Default is case sensitive.
Return Value
Success: Returns 1.
Failure: Returns 0.
Remarks
None.
Example
my $str = "The one"; my $newStr = CSetDel($str, "hn"); println("Before: $str"); // Prints After: The one println("After: $newStr"); // Prints After: Te oe