replace-string
This parser helps you replace a part or the whole name of your collections, groups and tokens from your SDTF token tree.
Interface
Options
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
|
| Select all collections, groups and tokens in your SDTF token graph. | ||
|
| Select all groups in your SDTF token graph. | ||
|
| Select all collections in your SDTF token graph. | ||
|
| Select all tokens in your SDTF token graph. | ||
regex |
|
| If string: the parameter used for the constructor of the regex. If your use case need to use flags prefer object notation. | |
regex.pattern |
|
| The pattern of the regex used as first argument of the constructor. | |
regex.flags |
|
| The flags to use for regex. In the regex constructor it's the second argument constructor of the regex. | |
replaceBy |
|
| The value will used as replacement. This method is used to apply the replacement. | |
|
|
|
| Set true to remove spaces before and after the transformed values. This method is used to trim. |
|
| The selection where to apply the transformation.
|
Basic usage: Rename design token by keeping only characters present after the last slash character (/
).
/
).Last updated