Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何检查大于签入reg表达式?_Python_Regex_Robotframework - Fatal编程技术网

Python 如何检查大于签入reg表达式?

Python 如何检查大于签入reg表达式?,python,regex,robotframework,Python,Regex,Robotframework,如何使用大于的签入机器人框架reg表达式 show_output name=${item_name} action=get output_regexp=<ip>10.10.10.1</ip>, <time> >60 </time> show\u output name=${item\u name}action=get output\u regexp=10.10.10.1,>60 我想确保的值大于60秒。如何做到这一点?

如何使用
大于
的签入机器人框架reg表达式

 show_output    name=${item_name}    action=get    output_regexp=<ip>10.10.10.1</ip>, <time> >60 </time>
show\u output name=${item\u name}action=get output\u regexp=10.10.10.1,>60

我想确保
的值大于60秒。如何做到这一点?

正则表达式用于查找模式,而不是执行算术运算。你不能用正则表达式做你想做的事情。至少,不是没有一个真正复杂的表达式,它匹配61、62、63等,或者任何一个7后面跟一个或多个数字的数字,或者任何一组三个或多个数字,其中最后一个数字的第三个至少是1,并且没有任何小数点或前导负号

将数字提取出来并在单独的行上进行逻辑测试更容易