Find text in between sentence

Hi All,

Need your help to find out which node and what expression i should use, so that i create a new column.
eg. This Order — Should be tagged as “Order”
orders----Should be tagged as “Order”
Porder—Should be tagged as “Order”
anything contain order should be tagged as order

Hello @nitinyadav16 and welcome to the KNIME community

‘Rule Engine’ node with the code:

$text$ MATCHES ".*(?i)order.*$" => "Order"

Alternatively you can test ‘String Manipulation’ node with the following code:

regexMatcher($text$, ".*(?i)order.*$").equals("True")
	? "Order"
	: null

image

BR

3 Likes

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