Customer Service Center
Home
Knowledge Base
Contact Support
License Activation
|
Contact Support
|
License Activation
|
Spirent KB Article
Doc ID: FAQ15429
Printer Friendly
Email Article Link
iTest: What is the usage of "Use Line Mode" in Regex extractor properties in Analysis rule?
Environment/Versions
iTest
Answer
'Use Line Mode' will treat every line as separate in the response.
We can retrieve the first match of the response by using 'Use Line Mode'.
Example: If the response contains a line as follows:
AVP: Session-Id(263) l=62 f=-M-val=aaa://rjlab1scsc001.ims.mu1.jio.com:6761;1398237036;40
Regular expression for the above line is "
^\s+AVP: Session-Id\(\d+\) l=\d+\s+f=-M- val=(\S+)$
".
From the above expression the symbol "
^
" and "
$
" indicates the starting and ending of the line of the extracted value. Means here the values which are starting with
AVP:Session-Id
and ending with
val=xxxx
will extract all the values.
If we uncheck the option "Use Line Mode", then iTest will throw an error as "No matches found for RegEx..xxxxx", because of the starting and ending symbols of the regular expression. We can check this option by removing the symbols "
^
" and "
$
" and use the query as
\s+AVP: Session-Id\(\d+\) l=\d+\s+f=-M- val=(\S+)
to retrieve the first matching value of the response.
Attached is the sample test case.
Attachments
Attachment
Sample.fftc
Attachment
text.txt
Version
2.0
Publish Date
2023-11-16
Categories
Product : Velocity Portfolio,Velocity iTest
Related Articles