I need to extract a single number from a Jmeter answer using a regular expression extractor as part of the correlation.
Scenario:
<span>Abc456ABC</span>
If I use <span>(.*?)</span>, then I will get "Abc456ABC".
If I use <span>Abc(.*?)ABC</span>, then I will get "456".
But the left and right borders can change. The input may be: Abcdef789ABCgh
I only need a number [In the latter case, it is "789"]. Please suggest a suitable regular expression extractor.
Thanks in advance...
source
share