Or, if you only want to match digits:

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

The parentheses - ( and ) - are used to mark which section(s) of the
RE to return.

S.
On 01/03/06, Bill Gosse <[EMAIL PROTECTED]> wrote:
> Try name="productId" value="(.+?)"
>
> -----Original Message-----
> From: Ganti, Venkata [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 01, 2006 6:39 PM
> To: JMeter Users List
> Subject: Need Clarification on usage of Rregular expression extractor
>
> Hi All,
>
> I'm trying to get number 10125 from the following string:
>
> name="productId" value="10125"
>
> And I use the following expression, but it doesn't work:
>
> (name="productId" value="\d+?)
>
> When I am referencing this variable somewhere else in my test plan, its
> returning me the whole thing i.e. (name="productId" value="10125") but I
> want the only value (10125) from this expression.
>
> Could somebody through some light on this...
>
> Thanks in advance.
>
> Best Regards,
> Ven
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ****************************************************************************************
> BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is intended 
> only for the individual or entity to which it is addressed and may contain 
> information that is confidential and protected by law. Unauthorized review, 
> use, disclosure, or dissemination of this communication or its contents in 
> any way is prohibited and may be unlawful. If you are not the intended 
> recipient or a person responsible for delivering this message to an intended 
> recipient, please notify the original sender immediately by e-mail or 
> telephone, return the original message to the original sender or to [EMAIL 
> PROTECTED], and destroy all copies or derivations of the original message. 
> Thank you.  (BFeComNote Rev. 08/01/2005)
> ***************************************************************************************
>
> ---------------------------------------------------------------------
> 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