Question on Regular expression Extractor - jmeter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
SAS
Reply | Threaded
Open this post in threaded view
|

Question on Regular expression Extractor - jmeter

SAS
>
> 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
>
Reply | Threaded
Open this post in threaded view
|

Re: Question on Regular expression Extractor - jmeter

Felix Schumacher


Am 22. August 2019 20:45:53 MESZ schrieb SAS <[hidden email]>:
>>
>> 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: [hidden email]
For additional commands, e-mail: [hidden email]

SAS
Reply | Threaded
Open this post in threaded view
|

Re: Question on Regular expression Extractor - jmeter

SAS
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 <
[hidden email]> wrote:

>
>
> Am 22. August 2019 20:45:53 MESZ schrieb SAS <[hidden email]>:
> >>
> >> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

--


Thanks
SASTRY