【发布时间】:2021-01-21 11:24:16
【问题描述】:
我只是不知道如何从 Textview 中提取第一个数字。
我的 Textview 是
"Maximum week limit of this debit card is 300 000 CZK. Limit can be still increased up to 265 944 CZK".
我需要从这个对象中提取 300 000 个数字。
我可以很容易地找到这个 Textview 的 ID 并使用它。可以请人帮助我吗?谢谢。
【问题讨论】:
-
你可以使用正则表达式。在这里找到一个数字是链接:devqa.io/extract-numbers-string-java-regular-expressions
标签: regex testing automation text-parsing