Getting started Community Training Tutorials Documentation APIs, AI & Tools
%dw 2.0
import substringEvery from dw::core::Strings
output application/json
---
substringEvery("substringEvery", 3)
substringEvery
substringEvery
You're viewing an older version of the documentation. You can switch to the latest version or use the version selector in the left navigation.
Splits a string into an array of substrings equal to a specified length.
The last substring can be shorter than that length. If the length is greater than or equal to the length of the string to split, the function returns the entire string.
Introduced in DataWeave version 2.4.0.