Regex

Hello,

What sort of regex is supported in knime node? Perl regex?? What node I can use to extract potentially multiple texts matching my regex into different lines? i.e. "I am 20, Jame is 30,John is 40" if I extract two digit number, I should get 3 lines--20,30,40 each on a line.

 

Kind regards

 

Wei

KNIME supports the Java regular expressions which are compatible to Perl regular expressions (see http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html).

I couldn't find a single node that accomplishes your tasks, but with a combination of the Java snippet and the Ungroup node it works. Check out the attached workflow.

Thanks, I did similar thing in Python

To filter words based on regex you can use the node "RegEx Filter". However this node is not suitable for the taks described above.