Strings
Strings in CFML/Java are immutable! Remember that well!
Character Extractions
name = "luis";
writeoutput( name[ 1 ] ) => will produce lname = "luis";
writeoutput( name[ -1 ] ) => will produce sCharacter Extractions by Range
array[ start:stop:step ] data = "Hello CFML. You Rock!";
writeOutput( data[ 1 ] ) // Returns H
writeOutput( data[ -3 ] ) // Returns c
writeOutput( data[ 4:10:2 ] ) // Returns l FL
writeOutput( data[ 4:12 ] ) // Returns lo CFML
writeOutput( data[ -10:-4:2]) // Returns o oCommon String Functions
Len
Trim, LTrim, RTrim
Replace, ReplaceNoCase, REReplace, REReplaceNoCase
RemoveChars
Mid
ListToArray
Combining Strings
Interpolating Strings
Casting
Last updated
Was this helpful?
