Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用Build String带有内联函数的 Nintex 动作fn-Substring。当输入如下时,它可以正常工作。
Build String
fn-Substring
062015Z062215Zjun16
结果06
06
当日期是单个数字时会出现问题,它不会以 a 开头,0因此捕获不正确
0
62015Z62215Zjun16
结果62
62
我不确定如何修复捕获。
像这样的东西也许...
^(\d{1,2})\d{4}Z
不知道您的字符串中的常量是什么,但这假设 year 始终是四位数字,后跟一个Z. 如果Z不是恒定的,也许[A-Z]或类似的东西会这样做......
Z
[A-Z]
在这里查看 regex101。