# Find out which term was in the text

**URL:** <https://forum.knime.com/t/find-out-which-term-was-in-the-text/30162>\
**Category:** KNIME Extensions\
**Tags:** text-processing\
**Created:** [January 23, 2021, 6:57pm UTC](https://forum.knime.com/t/find-out-which-term-was-in-the-text/30162 "2021-01-23T18:57:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sfafilho](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/b19c9b/32.png) [@sfafilho](https://forum.knime.com/u/sfafilho)\
**Post date:** [January 23, 2021, 6:57pm UTC](https://forum.knime.com/t/find-out-which-term-was-in-the-text/30162/1 "2021-01-23T18:57:22Z")

</div>

Hello,

I have a table of terms [aaa, bbb, ccc]  
And a table with text [dddaaa, eeeccc, fffbbb, gggyyy]

I want a table with the text and the matching term - if any  
dddaaa - aaa  
eeeccc - ccc  
fffbbb - bbb  
gggyyy -

I did manage to test the occurrence of the term using the rule-based nodes, but I can´t tell which term was used for each row.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![ana\_ved](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ana_ved/32/7982_2.png) [@ana\_ved](https://forum.knime.com/u/ana_ved)\
**Post date:** [January 25, 2021, 5:38pm UTC](https://forum.knime.com/t/find-out-which-term-was-in-the-text/30162/2 "2021-01-25T17:38:18Z")

</div>

Oi/Hi @sfafilho

One question – can one of your records be something like aaabbbccc?

---

<div class="post-metadata">

**Author:** ![ana\_ved](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ana_ved/32/7982_2.png) [@ana\_ved](https://forum.knime.com/u/ana_ved)\
**Post date:** [January 27, 2021, 2:40pm UTC](https://forum.knime.com/t/find-out-which-term-was-in-the-text/30162/3 "2021-01-27T14:40:20Z")

</div>

Hi @sfafilho

Here is a simple example:

> **[Find\_terms\_in\_text – ana\_ved](https://hub.knime.com/ana_ved/spaces/Public/latest/Find_terms_in_text)**
>
> Solutions for data science: find workflows, nodes and components, and collaborate in spaces.

Cheers  
Ana

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 2, 2023, 9:40pm UTC](https://forum.knime.com/t/find-out-which-term-was-in-the-text/30162/4 "2023-06-02T21:40:34Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
