简体   繁体   中英

Jmeter - regular expression to extract value

I am somewhat new to regular expressions.I am trying to capture a value using a regular expression extractor that appears to be encapsulated in '\\'. Since \\ and " are special character in Perl, how would I extract this value?

The value comes out of the HTML like this:

state_hiddenfld_value=\\"504634900\\"

I already have an extractor that works for the name; do I need to include that as well?

I have tried this extractor:

Regular Expression: state_hiddenfld_value="\\"(.+?)\\" Template: $1$ Match No.: 1 Default Value:VSTABLEID_NOT_FOUND

I'm not sure if I need something else in my regular expression.

我们可以使用以下正则表达式

state_hiddenfld_value=\\"(.+)"

正则表达式应为

state_hiddenfld_value=\\"(.+?)\\"

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