It looks as though there is a newline before

value="

So try:

Regular Expression: name="ResourceID"\s+value="(\d+)

\s matches all white-space, including new-line

S.
On 20/06/06, Massimo Forno <[EMAIL PROTECTED]> wrote:

Hi,

I've tried using

value="(\d+)

instead of

name="CurrentResourceID" value="(\d+)

and I get the value, but as you know I have a lot of Value=....

Maybe it is the space or the " ?

Thanks,
Massimo.




-----Original Message-----
From: sebb [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 20, 2006 6:49 PM
To: JMeter Users List
Subject: Re: Regular Expression

Is the POST data from a file, or is it from parameters on the sampler?

JMeter does not replace variable references in files.

Try checking that the RE has been extracted correctly by using a Java
Request / Java Test sampler.

You can put ${PersonID} in the label or Result data field and check it
in the appropriate Listener.

S.
On 20/06/06, Massimo Forno <[EMAIL PROTECTED]> wrote:
>
> Hi Sebb,
>
> Nothing, I'm still getting JMeter sending:
>
> POST http://localhost:9000/SBS/EDS/Person/List.htmx
>
> POST data:
>
__cmsPageId=765&__cmsStartPageId=107&__cmsPageBack=0&__cmsActionTarget=&
>
__cmsAction=datasaved&CurrentResourceBindingID=${PersonBindID}&CurrentRe
> sourceID=${PersonID}&......
>
> Instead of:
>
> POST http://localhost:9000/SBS/EDS/Person/List.htmx
>
> POST data:
>
__cmsPageId=765&__cmsStartPageId=107&__cmsPageBack=0&__cmsActionTarget=&
>
__cmsAction=datasaved&CurrentResourceBindingID=${PersonBindID}&CurrentRe
> sourceID='THE REAL ID'&.....
>
> I thank you for any other suggestion.
>
> Massimo.
>
>
>
> -----Original Message-----
> From: sebb [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 20, 2006 6:32 PM
> To: JMeter Users List
> Subject: Re: Regular Expression
>
> The template $0$ means to match the *whole* RE; $1$ means the 1st pair
> of ().
>
> Try:
>
> Name: PersonID
>
> ReferenceName: PersonID
>
> Regular Expression: name="ResourceID" value="(\d+)
>
> Template: $1$
>
> Match N0. : 1
>
> This assumes that the Resource ID will only be numeric.
> If it can be anything upto to the closing ", then use:
>
> Regular Expression: name="ResourceID" value="(.+?)"
>
> S.
>
> ---------------------------------------------------------------------
> 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]


---------------------------------------------------------------------
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