UIpath中是通过系统调用正则表达式的

先定义 字符串

getstr="a8bcde9188hello world"

通过正则获取数字,长度2到10之间 

System.Text.RegularExpressions.Regex.Matches(getstr,"\d{2,10}")

注意 返回的是集合,如果直接打印,会提示 System Text Regular Expressions Match Collection

所以需要通过循环来获取匹配到的值

UIpath 中如何使用 正则表达式

 

 item 才是你想要的值

 

以上是使用UIpath中遇到的坑

若有不对的地方,请指出,谢谢

相关文章:

  • 2021-05-16
  • 2021-12-15
  • 2021-09-09
  • 2021-03-16
  • 2021-05-21
  • 2022-12-23
猜你喜欢
  • 2022-01-02
  • 2021-08-09
  • 2021-11-08
  • 2022-02-13
  • 2021-08-22
  • 2022-12-23
  • 2022-02-09
相关资源
相似解决方案