On 14/11/2008, Tushar Joshi <[EMAIL PROTECTED]> wrote: > Please try this: > <INPUT\s+TYPE="hidden"\s+NAME="modId"\s+VALUE="(.+?)">
The previous RE was better if VALUE can only be digits. If not, then it's cheaper to use: VALUE="[^"]+" as that does not require back-tracking. > with regards > Tushar > > > Tushar Joshi > http://www.tusharvjoshi.com > > > > On Fri, Nov 14, 2008 at 8:52 AM, akshata s.m. <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > I am trying to fetch an Id using regexp extractor. > > The sampler in which i am intending to replace the Id with my reference > > variable is the first sampler in my test plan. > > > > So where should i add the regexp extractor? > > > > 1. Is it just before my first sampler? > > 2. Should i add it to the testplan along with the configuration elements > > globally? > > > > Currently i m placing it just before the first sampler and it picks the > > default value entered in the regexp extractor. > > > > <INPUT TYPE="hidden" NAME="modId" VALUE="5"> > > The above javascript occurs atleast thrice in my code. And i want to pick > > the first occurence. My regexp extractor definition looks like this: > > > > Regexp Extractor: > > > > Reference name: modid > > Regular exp: <INPUT\s+TYPE="hidden"\s+NAME="modId"\s+VALUE="(\d+)"> > > Template: $1$ > > Match No: 1 > > Default val: Failed to fetch modid > > > > Kindly let me know if my regexp, template and match number is fine. The > > regexp i have used is verified using the ORO demo applet. > > > > Regards, > > Akshata > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

