Thanx a lot!
The trick was:
Remeber to group the regex into variable using the parethesis

<span class=\"x6\">([0-9]{1,6})</span> did the work!

On Wed, Oct 27, 2010 at 8:15 AM, <jeanlouis.pastu...@orange-ftgroup.com>wrote:

>
> Tested with JDK regexp with this expression :
> <span class=\"x6\">([0-9]{1,6})</span>
> The result is in group[1]
>
> Gives all groups for every pattern matching
>  group[0]=<span class="x6">1819</span>
>  group[1]=1819
> Jmeter uses ORO regexp, and as i know there is a regexp tester in Jmeter
> 2.4
>
> Cordialement / Best regards
>
> Jean-Louis Pasturel
>
>
> -----Message d'origine-----
> De : Michele Mase' [mailto:michele.m...@gmail.com]
> Envoyé : mardi 26 octobre 2010 23:22
> À : JMeter Users List
> Objet : Re: regular expression extractor long page
>
> The string is
> <span class="x6">1819</span>
> so the walue is 1819
>
> On Tue, Oct 26, 2010 at 9:39 PM, Deepak Shetty <shet...@gmail.com> wrote:
> > can you upload that HTML anywhere and send us a link?
> >
> > regards
> > deepak
> >
> > On Tue, Oct 26, 2010 at 12:22 PM, Michele Mase'
> <michele.m...@gmail.com>wrote:
> >
> >> a) yes
> >> In order to avoid other steps, i wrote the exact response in a html
> >> page, hit it with an http request (get page.html) post process it
> >> with the regex. extractor I've explained in the first mail.
> >> The value that should be extracted (a value between 1 and 6 decimal
> >> digits), it will be used to do another get http i.e.
> >> get 123.html where 123 is the value extracted.
> >> c)
> >> I've seen only dummy or null values :(
> >>
> >> On Tue, Oct 26, 2010 at 5:48 PM, Deepak Shetty <shet...@gmail.com>
> wrote:
> >> > Hi
> >> > just a couple of things to check
> >> > a. The snippet of HTML you posted is from the view results tree
> response?
> >> > (and not from a tool like firebug) - this matters because in the
> >> > DOM
> >> spaces
> >> > get converted into a single one or maybe you have ' instead of " .
> >> > In
> >> your
> >> > exact value you have omitted the =
> >> > b. You have attached the regex as a child to the sampler that is
> >> generating
> >> > the above response
> >> > c. Felix's regex should work.
> >> >
> >> > regards
> >> > deepak
> >> >
> >> > On Tue, Oct 26, 2010 at 8:03 AM, Michele Mase'
> >> ><michele.m...@gmail.com
> >> >wrote:
> >> >
> >> >> Even
> >> >> <span class\"x6\">1819</span> that is the "exact" value returns
> >> >> "dummy"
> >> >>
> >> >> On Tue, Oct 26, 2010 at 4:31 PM, Felix Frank <f...@mpexnet.de> wrote:
> >> >>
> >> >> > http://jakarta.apache.org/oro/demo.html says this should work,
> >> >> > so I'm
> >> at
> >> >> > a loss.
> >> >> >
> >> >> > Are you sure you're using the variable correctly? Have you
> >> >> > inserted a Debug Sampler?
> >> >> >
> >> >> > On 10/26/2010 04:04 PM, Michele Mase' wrote:
> >> >> > > <span class=\"x6\">[0-9]{1,6}</span>
> >> >> >
> >> >> > ----------------------------------------------------------------
> >> >> > ----- To unsubscribe, e-mail:
> >> >> > jmeter-user-unsubscr...@jakarta.apache.org
> >> >> > For additional commands, e-mail:
> >> >> > jmeter-user-h...@jakarta.apache.org
> >> >> >
> >> >> >
> >> >>
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> >> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
> >>
> >>
> >
>
>
>
> *********************************
> This message and any attachments (the "message") are confidential and
> intended solely for the addressees.
> Any unauthorised use or dissemination is prohibited.
> Messages are susceptible to alteration.
> France Telecom Group shall not be liable for the message if altered,
> changed or falsified.
> If you are not the intended addressee of this message, please cancel it
> immediately and inform the sender.
> ********************************
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>
>

Reply via email to