Capture the context of a target word. A context is defined as characters before or after the target word.
The regex used is :
.{10}\sin\s.{10}
The regex translated to English:
.{10} – Find 10 characters (spaces are technically characters)
\s – literal space
"in" – target word
The numbers (here 10) indicate the context window size which can be changed by the user.
Adopted library: https://download.java.net/java/early_access/loom/docs/api/java.base/java/util/regex/package-summary.html
Forum question which inspired this workflow: https://forum.knime.com/t/extract-all-instances-of-term-from-string/45735/6
To use this workflow in KNIME, download it from the below URL and open it in KNIME:
Download WorkflowDeploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!