jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajivkumarnandv...@gmail.com
Subject Re: Re: Re: Need help in regular expression
Date Mon, 20 Jun 2011 10:36:33 GMT
hi sandeep i have already mentioned that it is the prob of space between  
equal sign. you are not using the same.

like

this is your string var basketReference  
= "c8320481-79a3-46a9-abba-**6541e50ebd9d";

here is only one space added on both side of equal sign

if i use following regexp only first will work I hope it will more cleared  
you. thanks

1). basketReference = "([a-z0-9A-Z-]+)"
2). basketReference="([a-z0-9A-Z-]+)"
3.) basketReference = "([a-z0-9A-Z-]+)"

On , sandeep bhosale <sandeep.bhosale@gmail.com> wrote:
> Hi all,



> I have tried with using only "([a-z0-9A-Z-]+)". Its exactly matches the

> basket reference. But when I put the basketReference = "([a-z0-9A-Z-]+)"  
> its

> not matching any value.



> Can anybody suggest what needs to be corrected in above regex.



> Thanks,

> Sandeep



> On Mon, Jun 20, 2011 at 1:22 PM, sandeep bhosale

> sandeep.bhosale@gmail.com>wrote:



> > Hey rajiv,

> >

> > This expression is also not working.

> >

> > Thanks,

> > Sandeep

> >

> >

> > On Mon, Jun 20, 2011 at 1:15 PM, rajivkumarnandvani@gmail.com> wrote:

> >

> >> oops forget to mention parenthesis . :)

> >>

> >> 1.) "([a-z0-9A-Z-]+)"

> >> 2.) basketReference = "([a-z0-9A-Z-]+)"

> >>

> >>

> >>

> >> On , rajivkumarnandvani@gmail.com wrote:

> >>

> >>> Hi use this

> >>>

> >>

> >>

> >> basketReference = "[a-z0-9A-Z-]+"

> >>>

> >>

> >>

> >> make sure your using the exact one variable with equal sign and space

> >>> between

> >>>

> >>

> >> OR you can use this

> >>>

> >>

> >> "[a-z0-9A-Z-]+"

> >>>

> >>

> >> On , sbhosale sandeep.bhosale@gmail.com> wrote:

> >>> > Hi All,

> >>> >

> >>> >

> >>> >

> >>> > I want to extract the basket reference number

> >>> >

> >>> > (c8320481-79a3-46a9-abba-**6541e50ebd9d) from the below string.

> >>> >

> >>> >

> >>> >

> >>> > var basketReference = "c8320481-79a3-46a9-abba-**6541e50ebd9d";

> >>> >

> >>> >

> >>> >

> >>> >

> >>> >

> >>> > I have tried the couple of reg ex. But not successful.

> >>> >

> >>> >

> >>> >

> >>> > I have tried

> >>> >

> >>> > 1. basketReference="[a-zA-Z0-9\-]***\"

> >>> >

> >>> > 2. \bbasketReference\s=\s\"[a-zA-**Z0-9\-]*\"

> >>> >

> >>> >

> >>> >

> >>> > Please help me in finding the correct regex.

> >>> >

> >>> >

> >>> >

> >>> > Thanks,

> >>> >

> >>> > Sandeep

> >>> >

> >>> >

> >>> >

> >>> > --

> >>> >

> >>> > View this message in context: http://jmeter.512774.n5.**

> >>>  
> nabble.com/Need-help-in-**regular-expression-**tp4505421p4505421.htmlhttp://jmeter.512774.n5.nabble.com/Need-help-in-regular-expression-tp4505421p4505421.html>

> >>> >

> >>> > Sent from the JMeter - User mailing list archive at Nabble.com.

> >>> >

> >>> >

> >>> >

> >>> > ------------------------------**------------------------------**

> >>> ---------

> >>> >

> >>> > To unsubscribe, e-mail:  
> jmeter-user-unsubscribe@**jakarta.apache.orgjmeter-user-unsubscribe@jakarta.apache.org>

> >>> >

> >>> > For additional commands, e-mail:  
> jmeter-user-help@jakarta.**apache.orgjmeter-user-help@jakarta.apache.org>

> >>> >

> >>> >

> >>> >

> >>>

> >>

> >


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message