Strings
Strings in BoxLang/Java are immutable! Remember that well!
📋 Table of Contents
🔤 Java String Interoperability
// Access Java String methods directly
text = "Hello BoxLang"
writeOutput( text.toUpperCase() ) // HELLO BOXLANG
writeOutput( text.substring(0, 5) ) // Hello
writeOutput( text.contains("Box") ) // true
writeOutput( text.startsWith("Hello") ) // true
writeOutput( text.endsWith("Lang") ) // true
writeOutput( text.indexOf("Box") ) // 6
writeOutput( text.split(" ") ) // ["Hello", "BoxLang"]🔍 Character Extractions
📏 Character Extractions by Range
📚 String Built-In Functions (BIFs)
🔤 Case Conversion
Function
Purpose
Example
🔍 Search & Find
Function
Purpose
Example
✂️ Extraction & Substring
Function
Purpose
Example
🔄 Replace & Transform
Function
Purpose
Example
🎨 Formatting & Padding
Function
Purpose
Example
🔢 Comparison & Analysis
Function
Purpose
Example
🔐 Encoding & Escaping
Function
Purpose
Example
🧮 Advanced String Operations
Function
Purpose
Example
🔢 Boolean Formatting
Function
Purpose
Example
🎯 Common String Functions
📏 len()
✂️ trim(), lTrim(), rTrim()
🔄 replace(), replaceNoCase(), reReplace(), reReplaceNoCase()
🗑️ removeChars()
📋 mid()
🔗 Related Documentation
📋 listToArray()
⚙️ Member Functions
BoxLang String Member Functions
Java String Member Functions
🔗 Combining Strings
Interpolating Strings
Casting
Last updated
Was this helpful?
