You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by SAS <sa...@gmail.com> on 2019/08/22 18:45:53 UTC

Question on Regular expression Extractor - jmeter

>
> Hi, I am trying to find a solution to the below challenge.
>
> the dynamic variable I am trying to capture has a variable right boundary.
>
> sometimes, it will be "}" and sometimes it will be ",".  how do I handle
> this?
>
>
> Thanks
> SASTRY
>

Re: Question on Regular expression Extractor - jmeter

Posted by SAS <sa...@gmail.com>.
Thank you so much for quick solution.  That has resolved the issue.

Thanks,
Sastry

On Thu, Aug 22, 2019 at 3:52 PM Felix Schumacher <
felix.schumacher@internetallee.de> wrote:

>
>
> Am 22. August 2019 20:45:53 MESZ schrieb SAS <sa...@gmail.com>:
> >>
> >> Hi, I am trying to find a solution to the below challenge.
> >>
> >> the dynamic variable I am trying to capture has a variable right
> >boundary.
> >>
> >> sometimes, it will be "}" and sometimes it will be ",".  how do I
> >handle
> >> this?
>
> It would probably be a good idea to give a few examples of your data and
> the parts you want to extract.
>
> Maybe there are better ways to extract the data.
>
> But to your original question, you might be able to use the regex feature
> character classes. In your special case [,}] (that is a square bracket, a
> comma, a brace and again a square bracket)
>
> I always like the web site regex101.com to test my regexes on my data.
>
> Felix
>
> >>
> >>
> >> Thanks
> >> SASTRY
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

-- 


Thanks
SASTRY

Re: Question on Regular expression Extractor - jmeter

Posted by Felix Schumacher <fe...@internetallee.de>.

Am 22. August 2019 20:45:53 MESZ schrieb SAS <sa...@gmail.com>:
>>
>> Hi, I am trying to find a solution to the below challenge.
>>
>> the dynamic variable I am trying to capture has a variable right
>boundary.
>>
>> sometimes, it will be "}" and sometimes it will be ",".  how do I
>handle
>> this?

It would probably be a good idea to give a few examples of your data and the parts you want to extract. 

Maybe there are better ways to extract the data. 

But to your original question, you might be able to use the regex feature character classes. In your special case [,}] (that is a square bracket, a comma, a brace and again a square bracket) 

I always like the web site regex101.com to test my regexes on my data. 

Felix 

>>
>>
>> Thanks
>> SASTRY
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org