system
Functions
Function
Description
Example
Description
Usage Examples
Multi-Split
// Split by multiple delimiters
const str = "apple,pear:banana;orange";
const fruits = dphelper.system.multiSplit(str, [',', ':', ';']);
// Result: ["apple", "pear", "banana", "orange"]
// Parse CSV with mixed delimiters
const data = "name,email:phone;address";
const parts = dphelper.system.multiSplit(data, [',', ':', ';']);
// ["name", "email", "phone", "address"]
// Parse log line
const log = "ERROR|WARNING|INFO:message here";
const sections = dphelper.system.multiSplit(log, ['|', ':']);
// ["ERROR", "WARNING", "INFO", "message here"]
// URL parsing
const url = "protocol:host/path?query=value";
const urlParts = dphelper.system.multiSplit(url, ['://', '/', '?', '=']);
// More complex parsingParse Complex Data
CSV Header Processing
Details
Last updated