Jmeter regular expression extractor - identity cards cut

Jmeter regular expression extractor - identification cut
the regular expression is extracted: the same thread group within the current acquisition request requires data B A request to return as a parameter, it is often said that the association , a request to the upper in response to a result of the requested parameters, it is necessary to use the response message of the request a postprocessor - regular expression extractor, which is the most convenient common extractor of the regular expression.
Here Insert Picture Description
Reference name: variable name you need to call in B request name, later referenced in the variable $ {name}

Regular expression: A request to return the required data format. For example token: "{(.? +)}" Or token: "{(.? *)}".

Template: If the regular expression to extract a plurality of results, the result is an array of template $ $ 1, $ 2, $, etc., to represent the first of several analytical value to the variable; match from the beginning, so .
If only one result is only $ 1 $;

Matching digits (0 represents a random): regular expression matching result can be seen as an array of data showing how the values: 0 represents a random value, n denotes the number n of n values ​​taken (for example 1 for taking a first value), a negative number indicates that extraction of all eligible value.

Default: The default value failed to match time; typically used for the subsequent logic, general English uppercase compositions generally specific meaning, such as: ERROR like.

ID is a 18 digit number composed of 1 to 6 bits before the area numbers 7 to 14 is the date of birth, 15 ~ 17 are sequential code, and finally a checksum is a
regular expression:
({6} ) ({8}) ({3}) ()...
({6}): matches any character 6, corresponding to the first six of the code
({8}): any character match eight times, corresponding to the birthday date
corresponding to the second set
$ 2 $

Here Insert Picture Description

Released five original articles · won praise 1 · views 102

Guess you like

Origin blog.csdn.net/Buriers/article/details/105048703