RegEx match complete word with special characters
------------------
Rule Engine
$my_text$ MATCHES /^.*(S\\.A\\.S\\.).*$/ => "contains S.A.S."
Column Expressions
else if (regexMatcher(column("my_text"), "^.*(S\.A\.S\.).*$")) {true}
String Manipulation
regexMatcher($my_text$, "^.*(S\.A\.S\.).*$")
Java Snippet (simple)
Pattern p = Pattern.compile("(^.*)(S\.A\.S\.)(.*$)");
Matcher m = p.matcher($my_text$);
Java Snippet
Pattern p = Pattern.compile("^.*(S\\.A\\.S\\.).*$");
Matcher m = p.matcher(c_my_text);
Workflow
RegEx match complete word with special characters - using Rule Engine, Column Expressions, String Manipulation, and Java Snippets
External resources
- RegEx - remove line breaks and special characters from column name
- KNIME and Java - simple if then else - with some string conversion
- hayasaka - Various Examples of Regex in KNIME
- victor_palacios - Various Examples of Regex in KNIME
- more RegEx examples from the KNIME hub
- Component by takbb - Regex String Replacer
- Component by takbb - Regex String Stripper
- Component by natanaeldgsantos - Regex Find All
- (48551) - forum entry
Used extensions & nodes
Created with KNIME Analytics Platform version 4.6.3
- Go to item
- Go to item
- Go to item
- Go to item
- Go to item
- Go to item
Loading deployments
Loading ad hoc executions
Legal
By using or downloading the workflow, you agree to our terms and conditions.
Discussion
Discussions are currently not available, please try again later.