# Can we extract the regex substring from the string

**URL:** <https://forum.knime.com/t/can-we-extract-the-regex-substring-from-the-string/28467>\
**Category:** KNIME Analytics Platform\
**Tags:** regex\
**Created:** [November 7, 2020, 2:35pm UTC](https://forum.knime.com/t/can-we-extract-the-regex-substring-from-the-string/28467 "2020-11-07T14:35:23Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![danielesser](https://forum-cdn.knime.com/user_avatar/forum.knime.com/danielesser/32/331_2.png) [@danielesser](https://forum.knime.com/u/danielesser)\
**Post date:** [November 7, 2020, 7:46pm UTC](https://forum.knime.com/t/can-we-extract-the-regex-substring-from-the-string/28467/3 "2020-11-07T19:46:01Z")

</div>

Hi @PankajChaudhary,

when it comes to Regex operations (and especially with experimentation), nothing compares with @qqilihq’s [Regex Extractor](https://nodepit.com/node/ws.palladian.nodes.extraction.regex.RegexExtractorNodeFactory). Requires the [Palladian Nodes](https://nodepit.com/product/palladian) to be installed, but they contain a bunch of useful functionality anyhow!

> **[Regex Extractor — NodePit](https://nodepit.com/node/ws.palladian.nodes.extraction.regex.RegexExtractorNodeFactory)**
>
> Extract fragments from text using regular expressions.

To see it in action, I created a small example workflow that shows how to extract groups/substrings from strings. More concrete I want to extract **awesome** from “hello **awesome** world” using the regex `^hello\s(\w*)\sworld$`:

> **[can-we-extract-the-regex-substring-from-the-string-28467 \[Workflow\] — NodePit](https://nodepit.com/workflow/com.nodepit.space/daniel/public/forum/can-we-extract-the-regex-substring-from-the-string-28467.knwf)**
>
> There has been no description set for this workflow's metadata.

Best regards,  
Daniel

---

_[View the full topic](https://forum.knime.com/t/can-we-extract-the-regex-substring-from-the-string/28467)._
