Search code examples
jmeter

JMeter - Boundary Extractor where right boundary is end of line


I want to use Boundary Extractor to extract only values from a string similar to property file:

a=1
b=2
c=3

I want to find 1,2,3
but I can't use Right Boundary as empty or regular expression as (\s+) or \n to match end of line

Is there any option to get the values or is it a limitation of Boundary Extractor?


Solution

  • You won't be able to use the Boundary Extractor as (surprise) you have to provide the boundary so it could do its job.

    However it is pretty easy achievable using Regular Expression Extractor, the relevant regular expression would be as simple as ([0-9]+) as it evidenced by RegExp Tester mode of the View Results Tree listener

    JMeter Regular Expression Extractor

    More information: