RemoveChars()

edit

Removes characters from a string.

RemoveChars( string=string, start=number, count=number );

Returns: String

Argument Description
string
string, required
edit

String in which to search.

start
number, required
edit

Start position of search from the left.

count
number, required
edit

Count of characters to be removed.

Examples

edit

writeDump(removeChars("Hi buddy!, Have a nice day.",10,18));//Expected output: Hi buddy!
//Member function
str="I love Lucee";
writeDump(str.removeChars(1,7));//Expected output: Lucee

See also