PDI Kettle Parameter in RegEx
Frage
I'm new in pentaho's world and I wanted to use a parameter to use my regex.
It's working when I try my regex with the field Test regEx
of a step Regex Evaluation.
But it's not working when I'm trying to run the kettle.
My RegEx is .*(?i)${TOOL_NAME}.*
I'm getting this from logs :
ERROR (version 5.0.6, build 1 from 2014-04-26_17-32-54 by buildguy) : Step [test regex.0] failed to initialize!
I'm already using parameters for other fields and it's working fine.
Anthony
Lösung
The use of system variables in the regex component requires the setting use variable substitution
to be activated. Otherwise the string ${PARAM}
will be interpreted literally, most likely resulting in an invalid regular expression which can not be compiled.