Inject by Table
The ‘Inject by Table’ task finds and replaces substrings in code or text that is saved in a ZIPPYDOC Word-by-Word table. Word-by-Word tables are also designated as ‘Text’ tables. The task works similar to the ‘Inject’ task but allows to use a replacement table instead of a single replacement item to replace the found items.
To import and store code or text, the ZIPPYDOC plattform converts this text into a Word-by-Word table that contains one column with all Words and a second column with the following Non-Word. This format is very powerful to wrangle with text.
With the Inject by Table it is easy to wrangle with code, as it allows to extract code snippets based on certain framing conditions, e.g. if the code-snippet was contained in a pattern like f(x){} or in a pattern like <tag> x <\tag> and replace the found items by items listed in a replacement table.
The ‘Inject by Table’ task is complemented by the ‘Extract’ task, which only allows to extract, not to insert code based on framing patterns.
Go to Flow Gallery and Copy & Edit the Inject by Table Flow for example usecases.