nifi 表达式语法 substringAfterLast 嵌套
nifi expression syntax substringAfterLast nested
我需要从下面的流文件名 FILE.IMITS.ES7600.D170614 中提取 ES7600
我正在尝试避免使用子字符串,并且一直在尝试使用 neested
substringBeforeLast
${filename:substringBeforeLast(${filename:substringBeforeLast('.')})('.')}
但是我的语法不正确。这可能吗?
对于此文件名:FILE.IMITS.ES7600.D170614
以下属性表达式
${filename:substringBeforeLast('.'):substringAfterLast('.')}
将returnES7600
我需要从下面的流文件名 FILE.IMITS.ES7600.D170614 中提取 ES7600 我正在尝试避免使用子字符串,并且一直在尝试使用 neested substringBeforeLast
${filename:substringBeforeLast(${filename:substringBeforeLast('.')})('.')}
但是我的语法不正确。这可能吗?
对于此文件名:FILE.IMITS.ES7600.D170614
以下属性表达式
${filename:substringBeforeLast('.'):substringAfterLast('.')}
将returnES7600