Sunil Malgaya wrote:
JMeter experts,
I need to get some help regarding regular expression extractor using JMeter.
From json response I need to extract complete GUID info from a url string:
"url": "https:\/\/abcdazurewebsites.net <http://abcazurewebsites.net/>
\/api\/collection\/titletext\/GUID-98035E11-41F8-4696-ABCD-6980AC22Z36D",
the output should be:GUID-98035E11-41F8-4696-ABCD-6980AC22Z36D
Any help will be appreciated on this matter.
Thanks,
Sunil
You could use something like:
titletext\\/(.+?)"
See Regular Expressions
<https://jmeter.apache.org/usermanual/regular_expressions.html> chapter
of JMeter user manual for more details.
Also there is Boundary Extractor
<https://jmeter.apache.org/usermanual/component_reference.html#Boundary_Extractor>where
you just need to provide "left" and "right" boundaries and it will
extract everything in-between and save it into a JMeter Variable, it
might be easier to use, consumes less resources and works faster. More
information: The Boundary Extractor vs. the Regular Expression Extractor
in JMeter <https://www.blazemeter.com/blog/jmeter-boundary-extractor>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org