You could use a Regex in the Expressio node
parse_int(regex_extract($["duration_txt"], "(\\d+)(?=mon)", 1))
RegEx Split String - KNIME Forum (89900).knwf (50.2 KB)