Excel 提取学生学号
问题描述
我有一个包含多个列的Excel数据,其中一列名为Description,其包含以下数据。我希望使用KNIME从每一行中提取学生学号。
以下是三个不同的行的示例:
Being Settlement of exam fee, student Number IMIS/C/5946/7/5/2021/5690 in respect of Flora Hamis
Being Settlement of school fee, student Number IMIS/C/28727/14/7/2022/28980 in respect of Tony Alex
Being Settlement of Life Assurance, student Number IMIS/C/28020/23/6/2022/28279 in respect of Richard Nixon
以下是我的尝试:
regexReplace(Description,^IMIS/\w{1}/\d/\d/\d/\d\s? ,"$1" )
解决方案
这应该可以解决问题:
/\bIMIS\/C\/\d+\/\d+\/\d+\/\d+\/\d+\b/gm