Replace
Input
| value |
|---|
Replace ' ' with '-' in value
transformation:replace
Replace pattern in text with flexible options
source:value
parameters
- from
- to
- replaceAll
- useRegex
Pattern to find (regex supported)
Replacement text
Replace all occurrences
Treat 'from' as regex pattern
Output
| value |
|---|
| Hello-World |
| replace-me |
| find-find-find |
| no-spaces |
| 123 |
Sample inputs run locally in your browser using the same operation logic as Fontana Flow.
Results are illustrative, not connected to a workflow.
Replace pattern in text with flexible options.
Parameters
- from (Pattern to Find, string, required) — Pattern to find (regex supported). Examples:
" ","old","\\d+","Mr\\.","\\s+". - to (Replacement Text, string, optional) — Replacement text. Examples:
"-","new","","Dr.","". - replaceAll (Replace All Occurrences, boolean, optional) — Replace all occurrences. Examples:
true,false. - useRegex (Use Regex, boolean, optional) — Treat 'from' as regex pattern. Examples:
false,true.
Field selection
- source — Field whose values this operation reads. Omit to apply to all fields on the row.
- target — Optional output field. When omitted, the source field is updated in place.
JSON Configuration
{ "id": "op-replace", "type": "transformation", "action": "replace", "params": { "from": " ", "to": "-", "replaceAll": true, "useRegex": false }, "testInputs": [ "Hello World", "replace me", "find find find", "no-spaces", "123", "" ]}