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
Regex 用于在代码中捕获动态值的Jmeter正则表达式提取器_Regex_Jmeter - Fatal编程技术网

Regex 用于在代码中捕获动态值的Jmeter正则表达式提取器

Regex 用于在代码中捕获动态值的Jmeter正则表达式提取器,regex,jmeter,Regex,Jmeter,在这里,我使用JMeter2.6测试一个.net应用程序。 通过正则表达式提取器提取动态值时,我无法继续并获取匹配计数=0 我的表达是: window.open('ConsumptionBatchSerial.aspx?Quantity='+ReturnQty+'&ItemCode='+ItemCode+'&Batch='+Batch+'&Serial='+Serial+'&StDetailsId='+StDetailsId+'','','width=810,he

在这里,我使用JMeter2.6测试一个.net应用程序。 通过正则表达式提取器提取动态值时,我无法继续并获取匹配计数=0

我的表达是:

window.open('ConsumptionBatchSerial.aspx?Quantity='+ReturnQty+'&ItemCode='+ItemCode+'&Batch='+Batch+'&Serial='+Serial+'&StDetailsId='+StDetailsId+'','','width=810,height=350,left=100,top=150,resizable=1')
我想从中提取Itemcode、Quantity、Serial、Batch、StDetailsId

有人对这个概念有什么想法吗? 请张贴,如果你知道这种情况


提前感谢。

如果您想要捕获解析后的数据,这将显示在浏览器中,类似的操作应该可以实现

?数量=[^&]*&项目代码=[^&]+&批次=[^&]+&序列=[^&]+&StDetailsID=[^,]+

如果该字符串正是您想要匹配的字符串,那么类似的东西应该可以工作

?数量='\+[^\+]*\+&ItemCode='\+[^\+]*\+&Batch='\+[^\+]*\+&Serial='\+[^\+]*\+&StDetailsID=\+[^\+]+


无法在任何地方发表评论以要求澄清,很抱歉,正则表达式格式将获取以下值

1. Quantity
2. Itemcode
3. Batch
4. Serial
5. StDetailsId
正则表达式

Quantity=(.+)&ItemCode=(.+)&Batch=(.+)&Serial=(.+)&StDetailsId=(.+)','',