You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Be...@sungard.com on 2011/06/15 19:39:15 UTC
Regular expresion to capture multiple lines
Hi everyone, I'm trying to correlate a value but the right and left
boundaries are not on the same line.
I want to use "Total Number of Exceptions" as my left boundary and
"</TR>" as my right.
Please help.
return false;">
Total Number of Exceptions
</a>
</TD>
<td width=50>
39
</td>
</TR>
<TR>
Kind Regards
Benedict Nkosi
Performance Tester
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Regular expresion to capture multiple lines
Posted by Oliver Lloyd <ol...@hotmail.com>.
Oh...you're replying to Deepak. I see.
--
View this message in context: http://jmeter.512774.n5.nabble.com/Custom-Sampler-Tutorial-tp4490189p4492160.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Regular expresion to capture multiple lines
Posted by Oliver Lloyd <ol...@hotmail.com>.
It does work. Try it http://jakarta.apache.org/oro/demo.html here or
http://rubular.com/ here . Both give correct matches.
Note, I'm only going by what you wrote - check your original post.
--
View this message in context: http://jmeter.512774.n5.nabble.com/Custom-Sampler-Tutorial-tp4490189p4492157.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
RE: Regular expresion to capture multiple lines
Posted by Be...@sungard.com.
Hi Lloyd, Thanks a lot, its working.
Kind Regards
Benedict Nkosi
Performance Tester
-----Original Message-----
From: Oliver Lloyd [mailto:oliver_lloyd@hotmail.com]
Sent: Wednesday, June 15, 2011 1:20 PM
To: jmeter-user@jakarta.apache.org
Subject: Re: Regular expresion to capture multiple lines
Ooops, you said 'TR'.
Total Number of Exceptions(\n|.)*<\/TR>
But you could have worked that out yourself I'm sure...
Also, weird thing to match on, why not get the actual value?
--
View this message in context:
http://jmeter.512774.n5.nabble.com/Custom-Sampler-Tutorial-tp4490189p449
2154.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Regular expresion to capture multiple lines
Posted by Oliver Lloyd <ol...@hotmail.com>.
Ooops, you said 'TR'.
Total Number of Exceptions(\n|.)*<\/TR>
But you could have worked that out yourself I'm sure...
Also, weird thing to match on, why not get the actual value?
--
View this message in context: http://jmeter.512774.n5.nabble.com/Custom-Sampler-Tutorial-tp4490189p4492154.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Regular expresion to capture multiple lines
Posted by Oliver Lloyd <ol...@hotmail.com>.
Total Number of Exceptions(\n|.)*<\/TD>
--
View this message in context: http://jmeter.512774.n5.nabble.com/Custom-Sampler-Tutorial-tp4490189p4492146.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Regular expresion to capture multiple lines
Posted by Deepak Shetty <sh...@gmail.com>.
Hi
I tested it and it worked me. However I see you have your solution so we
needn't look further :)
regards
deepak
On Wed, Jun 15, 2011 at 11:15 AM, <Be...@sungard.com> wrote:
> Hi, I tested it and it doesn't find it. Do you need any other
> information from me?
>
> Kind Regards
> Benedict Nkosi
> Performance Tester
>
>
> -----Original Message-----
> From: Deepak Shetty [mailto:shettyd@gmail.com]
> Sent: Wednesday, June 15, 2011 12:49 PM
> To: JMeter Users List
> Subject: Re: Regular expresion to capture multiple lines
>
> http://jakarta.apache.org/jmeter/usermanual/regular_expressions.html
> I believe you need to prefix your regex with(?s) to treat the text as a
> single line - however i do not currently have an environment to test
> Something like (?is)Total Number of Exceptions(.*?)</TR> - test it and
> let
> us know.
>
> regards
> deepak
>
> On Wed, Jun 15, 2011 at 10:39 AM, <Be...@sungard.com> wrote:
>
> > Hi everyone, I'm trying to correlate a value but the right and left
> > boundaries are not on the same line.
> > I want to use "Total Number of Exceptions" as my left boundary and
> > "</TR>" as my right.
> >
> > Please help.
> >
> > return false;">
> > Total Number of Exceptions
> > </a>
> > </TD>
> > <td width=50>
> > 39
> > </td>
> > </TR>
> >
> > <TR>
> >
> >
> > Kind Regards
> > Benedict Nkosi
> > Performance Tester
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
RE: Regular expresion to capture multiple lines
Posted by Be...@sungard.com.
Hi, I tested it and it doesn't find it. Do you need any other
information from me?
Kind Regards
Benedict Nkosi
Performance Tester
-----Original Message-----
From: Deepak Shetty [mailto:shettyd@gmail.com]
Sent: Wednesday, June 15, 2011 12:49 PM
To: JMeter Users List
Subject: Re: Regular expresion to capture multiple lines
http://jakarta.apache.org/jmeter/usermanual/regular_expressions.html
I believe you need to prefix your regex with(?s) to treat the text as a
single line - however i do not currently have an environment to test
Something like (?is)Total Number of Exceptions(.*?)</TR> - test it and
let
us know.
regards
deepak
On Wed, Jun 15, 2011 at 10:39 AM, <Be...@sungard.com> wrote:
> Hi everyone, I'm trying to correlate a value but the right and left
> boundaries are not on the same line.
> I want to use "Total Number of Exceptions" as my left boundary and
> "</TR>" as my right.
>
> Please help.
>
> return false;">
> Total Number of Exceptions
> </a>
> </TD>
> <td width=50>
> 39
> </td>
> </TR>
>
> <TR>
>
>
> Kind Regards
> Benedict Nkosi
> Performance Tester
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Regular expresion to capture multiple lines
Posted by Deepak Shetty <sh...@gmail.com>.
http://jakarta.apache.org/jmeter/usermanual/regular_expressions.html
I believe you need to prefix your regex with(?s) to treat the text as a
single line - however i do not currently have an environment to test
Something like (?is)Total Number of Exceptions(.*?)</TR> - test it and let
us know.
regards
deepak
On Wed, Jun 15, 2011 at 10:39 AM, <Be...@sungard.com> wrote:
> Hi everyone, I'm trying to correlate a value but the right and left
> boundaries are not on the same line.
> I want to use "Total Number of Exceptions" as my left boundary and
> "</TR>" as my right.
>
> Please help.
>
> return false;">
> Total Number of Exceptions
> </a>
> </TD>
> <td width=50>
> 39
> </td>
> </TR>
>
> <TR>
>
>
> Kind Regards
> Benedict Nkosi
> Performance Tester
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>