Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "_id": "test-pipe-2",
- "type": "pipe",
- "source": {
- "type": "embedded",
- "entities": [{
- "_id": "foo",
- "value": "string`with a\\lot/of?characters(to)be{replaced}by[hyphen]to=avoid>problems*with&data'in<target+system~that\"would^receive|this.data"
- }]
- },
- "transform": {
- "type": "dtl",
- "rules": {
- "default": [
- ["add", "cleared_string",
- ["replace", ".", "-",
- ["replace", "|", "-",
- ["replace", "^", "-",
- ["replace", "\"", "-",
- ["replace", "~", "-",
- ["replace", "+", "-",
- ["replace", "<", "-",
- ["replace", "'", "-",
- ["replace", "&", "-",
- ["replace", "*", "-",
- ["replace", ">", "-",
- ["replace", "=", "-",
- ["replace", "]", "-",
- ["replace", "[", "-",
- ["replace", "}", "-",
- ["replace", "{", "-",
- ["replace", ")", "-",
- ["replace", "(", "-",
- ["replace", "?", "-",
- ["replace", "/", "-",
- ["replace", "\\", "-",
- ["replace", "`", "-", "_S.value"]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- ]
- }
- }
- }
Advertisement
RAW Paste Data
Copied
Advertisement