OK :-)

it works !!!!

Thanks
-raffo

On 4/3/06, sebb <[EMAIL PROTECTED]> wrote:
>
> You don't need the / / around the Regex.
>
> S.
> On 03/04/06, Simon <[EMAIL PROTECTED]> wrote:
> > try something like that - "<name>nbrobj</name><value>(.*)</value>"
> > template: $1$ (to get the "5424")
> >
> > 2006/4/3, Raffaele Viola <[EMAIL PROTECTED]>:
> > >
> > > Hi all,
> > >
> > > this is the entire server response:
> > >
> > >
> > >
> <method><name>count</name><object>networkareas</object><attribute><name>returnValue</name><value>0</value></attribute><attribute><name>returnComment</name><value></value></attribute><attribute><name>nbrobj</name><value>5424</value></attribute></method>
> > >
> > > and this what I write in the fields of Regular expression extractor
> > >
> > > reference name: nb
> > > regular expression: /<name>nbrobj<\/name><value>(\d*)/
> > > template: $0$
> > > Match No.: 1
> > >
> > > It doesn't work .... help Me!!!!!
> > >
> > > Thanks
> > > -Raffo
> > > On 3/31/06, sebb <[EMAIL PROTECTED]> wrote:
> > > >
> > > > On 31/03/06, Raffaele Viola <[EMAIL PROTECTED]> wrote:
> > > > > Thanks,
> > > > > the problem is that in the response I vave more than expression
> like
> > > > > <value>1</value>
> > > > > what distinguish the expression is the name between <name> and
> </name>
> > > > >
> > > > > can I use an expression like that:
> > > > >
> > > > > <name> name of value </name><value> (\d*) </value>
> > > >
> > > > Yes - try it and see - but remember spaces are significant, so you
> > > > probably want
> > > >
> > > > <name>name of value</name><value>(\d+)</value>
> > > >
> > > > I changed \d* to \d+ to ensure that you get at least one digit.
> > > >
> > > >
> > > > >
> > > > > thanks!
> > > > >
> > > > > -Raffo
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On 3/31/06, Frehe, Torsten <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I think you could use an regular expression extractor like this:
> > > > > >
> > > > > > Reference name: name of your new variable
> > > > > > Regular expression : (<value>([^<]*))
> > > > > > Template : $2$
> > > > > > Match No.: 1
> > > > > >
> > > > > > The you get the 1 into your variable
> > > > > >
> > > > > > Reference name: name of your new variable
> > > > > > Regular expression : (<value>([^<]*))
> > > > > > Template : $2$
> > > > > > Match No.: 2
> > > > > >
> > > > > > You get "getGrantaccessError" in your variable.
> > > > > >
> > > > > >
> > > > > > To use the variable in the next request use ${variable}
> > > > > >
> > > > > > Torsten
> > > > > >
> > > > > > -----Ursprüngliche Nachricht-----
> > > > > > Von: Raffaele Viola [mailto:[EMAIL PROTECTED]
> > > > > > Gesendet: Freitag, 31. März 2006 13:13
> > > > > > An: JMeter Users List
> > > > > > Betreff: use of regular expression
> > > > > >
> > > > > >
> > > > > > Hi all,
> > > > > >
> > > > > > I have this type of response form the server and I need to catch
> the
> > > > value
> > > > > > between  <value> and </value> and put the value in a variable.
> > > > > >
> > > > > > How can I do?
> > > > > >
> > > > > > <method>
> > > > > > <name>Unknown</name>
> > > > > > <object>Unknown</object>
> > > > > > <attributeme>returnValue</name><value>1</value></attribute>
> > > > > >
> > > > > >
> > > >
> > >
> <attribute><name>returnComment</name><value>getGrantaccessError</value></attribute>
> > > > > > </method>
> > > > > >
> > > > > > thanks a lot!!!!
> > > > > >
> > > > > > -Raffo
> > > > > >
> > > > > >
> > > > > >
> ******************************************************************
> > > > > > Bitte nutzen Sie die E-Mail-Verbindung mit uns ausschliesslich
> zum
> > > > > > Informationsaustausch. Wir koennen auf diesem Wege keine
> > > > > > rechtsgeschaeftlichen Erklaerungen (Auftraege etc.)
> entgegennehmen.
> > > > > > Der Inhalt dieser Nachricht ist vertraulich und nur fuer den
> > > > angegebenen
> > > > > > Empfaenger bestimmt. Jede Form der Kenntnisnahme oder Weitergabe
> > > > > > durch Dritte ist unzulaessig. Sollte diese Nachricht nicht fur
> Sie
> > > > > > bestimmt
> > > > > > sein, so bitten wir Sie, sich mit uns per E-Mail oder
> telefonisch in
> > > > > > Verbindung zu setzen.
> > > > > >
> > > > > > Please use your E-mail connection with us exclusively for the
> > > exchange
> > > > > > of information. We do not accept legally binding declarations
> > > (orders,
> > > > > > etc.) by this means of communication. The contents of this
> message
> > > is
> > > > > > confidential and intended only for the recipient indicated.
> Taking
> > > > > > notice of this message or disclosure by third parties is not
> > > > > > permitted. In the event that this message is not intended for
> you,
> > > > > > please contact us via E-mail or phone.
> > > > > >
> > > > > >
> ******************************************************************
> > > > > >
> > > > > >
> > > > > >
> > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > > > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to