You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Sushit Roy <ro...@hotmail.com> on 2008/03/13 08:40:35 UTC
Regular Expression Extractor
Hi,
I am using Regular Expression extractor and would like to collect an activation code for an user which is gennerated by our website.
The line which displayed on the webpage is "Their activation code is 57348957". How should I write the regular expression to get use the activation code.
I am only getting the default value.
Any idea.
Thanks
Sushit
_________________________________________________________________
Post free property ads on Yello Classifieds now! www.yello.in
http://ss1.richmedia.in/recurl.asp?pid=220
RE: Regular Expression Extractor
Posted by Sushit Roy <ro...@hotmail.com>.
Thanks Ronan,
It works. However, I have a scenario where in I have to create 20,000 users with a single admin login. Then I need to collect this username and activation code gennerated as below in a file.
After completion of creation of the users I need to activate the users reading from the file the username and activation code one after another.
Any idea, how I can proceed.
Thanks
Sushit
> Date: Thu, 13 Mar 2008 07:52:29 +0000> From: ronan.klyne@groupbc.com> To: jmeter-user@jakarta.apache.org> Subject: Re: Regular Expression Extractor> > Sushit Roy wrote:> > Hi,> > > > I am using Regular Expression extractor and would like to collect an activation code for an user which is gennerated by our website.> > > > The line which displayed on the webpage is "Their activation code is 57348957". How should I write the regular expression to get use the activation code.> > > > Try "Their activation code is ([0-9]+)", and using $1$ as your template.> > # r> > -- > Ronan Klyne> Business Collaborator Developer> Tel: +44 01189 028518> ronan.klyne@groupbc.com> www.groupbc.com> > ---------------------------------------------------------------------> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org>
_________________________________________________________________
Post free property ads on Yello Classifieds now! www.yello.in
http://ss1.richmedia.in/recurl.asp?pid=220
Re: Regular Expression Extractor
Posted by Ronan Klyne <ro...@groupbc.com>.
Sushit Roy wrote:
> Hi,
>
> I am using Regular Expression extractor and would like to collect an activation code for an user which is gennerated by our website.
>
> The line which displayed on the webpage is "Their activation code is 57348957". How should I write the regular expression to get use the activation code.
>
Try "Their activation code is ([0-9]+)", and using $1$ as your template.
# r
--
Ronan Klyne
Business Collaborator Developer
Tel: +44 01189 028518
ronan.klyne@groupbc.com
www.groupbc.com
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org