span8
span4
属性中有以下字符串:“1960年1月1日;1900年1月1日;1960年1月1日;01/05/1890;1960年1月1日;1960年1月1日;1960年1月1日;1960年1月1日;1960年1月1日;1960年1月1日;" I need to extract the earliest year from the attribute, since this is input from a reader the attribute will have different values, but the year will always be in a 4 digit format.我想用一个正则表达式来提取最早的年份,在这里是1890年。这是可能的吗?
这里有一个方法:
例子:
只是为了好玩。有时,FME可以通过字符串/数学运算和几何运算的协作来解决难题。
将OGC已知文本设置为几何编码参数,并将该表达式设置为GeometryReplacer中的几何源参数
LINESTRING (@Trim (@ReplaceRegEx (; @ value(文本),”。+ ? (? = \ d {4})”、“0”),”;"))
©2019安全亚搏在线软件公司法律