简体   繁体   中英

JMeter extract with regular expression a javascript event value

I would like to extract a string this number 1234-1234-1234-1234 plain number, on a Response with Regular Expression Extractor in JMeter *but it wont work i guess because its in ( ) .
As well duno how to escape or work around.

Any ideas?

String to extract example:
OnClick="buttonid('1234-1234-1234-1234')"

Regex extract example:
OnClick="buttonid('(.+?)')"

试试这个正则表达式:OnClick =“ buttonid('([[^'] +?)')”

我们可以使用简单的正则表达式格式来提取值

Regex : OnClick="buttonid\('(.+)'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM