[Usage scenario]: The next request parameter needs to be obtained from the response data of the previous request
[jmeter regular expression description]: use perl regular expressions (refer to: http://www.runoob.com/perl/perl-regular-expressions.html)
【grammar】:
The part enclosed in () is to be extracted.
[0-9a-zA-Z\_]
Can match a number, letter or underscore
^
Indicates the beginning of a line,
^\d
indicating that it must start with a number.
$
Indicates the end of the line,
\d$
indicating that it must end with a number.
A|B
Can match A or B, such as
(P|p)ython
can match
'Python'
or
'python'
()
Represents the group to be extracted, such as
m = re.match(r'^(\d{3})-(\d{3,8})$', '010-12345')
2. Use of values extracted by regular expressions
The usage is as follows${orderid}
3. Recommend a regular expression tool, RegexTeste, which can be downloaded and used
ps: If you want to know more about templates and data quantity, that is, data acquisition and processing in different situations, you can check the blog. Personally, I feel that the blogger wrote very well: https://wenku.baidu.com/view/e668f5f5b9f67c1cfad6195f312b3169a451eaf0.html