Java snippet and regex

Hi all, I am trying to write a condition on a string when ever a character is found in the somewhere in the middle of a number, I want an action done, something like this:

if regexmatch($columnname$,“F[0-9]+”)
this = do this;
else this = $columnname$
return this
I’m trying to implement this using Java snippet, can anyone advise? Thanks


This can be done easily in “Column Expressions” node.

if (regexMatcher(column(“columnname”),“F[0-9]+”)){
else column(“columnname”)


Thanks armingrudd, got it working

1 Like

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