Static
splitterSetter for the original string.
The new original string.
Replaces a key in the parts with a value. The key should correspond to a replacement token in the original string. If the key is an object and the value is undefined, the key is used as a key-value pair object for multiple replacements.
The key to replace. This should correspond to a replacement token in the original string. If this is an object and value is undefined, this object is used for multiple replacements.
Optional
value: ValTypeThe value to replace the key with. If key is an object and this is undefined, key is used for multiple replacements.
The instance of the SplitParts class.
Resets the parts to the original string.
The instance of the SplitParts class.
SplitParts
is a class that splits a string into parts and allows for replacements. The class takes a string with replacement tokens (e.g., "%email%") and allows these tokens to be replaced with actual values. The replacement tokens in the string correspond to the keys in the replacement object.Param: original
The original string to be split. This string can contain replacement tokens surrounded by % characters.