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!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.