在 Spotfire 中提取两个字符串之间的文本

extract text between two strings in Spotfire

我想根据以下数据在 Spotfire 上计算一个新列:

这是您想要的,只需将 "Column" 替换为您的列名即可。

Mid([Column],
    Find("out of ",[Column])+Len("out of "),
    Find(" exposures",[Column])-Find("out of ",[Column])-Len("out of ")
)

小说明:

Mid 允许您从一个字符串中提取一个子字符串和两个 positions/indexes.

Find 允许您获取第一个参数与第二个参数的第一个匹配项的索引。


您可以在此处找到有关 Spotfire 文本功能的更多详细信息: https://docs.tibco.com/pub/spotfire/6.5.2/doc/html/ncfe/ncfe_text_functions.htm