Skip to functions

Apex String and Function Tools

Browse 68 Apex text, regex, formatting and encoding tools with live browser results, examples, and language references.

Apex text utilities use the System namespace. Consider Salesforce transaction limits when applying an expensive transformation to many records. Apex reference

Case & whitespace

Search & replace

Split, join & measure

Encoding & escaping

Regex & parsing

Formatting & checksums