On 23/04/07, aurel' <[EMAIL PROTECTED]> wrote:

Hi,

I want to extract the protocol name of a URL with a regular expression :
ex : https://www.test.com => https

I'm using the regular expression extractor of JMeter 2.2 to assign a
variable :
- variable : testVar
- regular expression : (.*)://.*

The trailing .* is unnecessary and should be removed.

- template : $1$
- num : 1

Set the default Value to something like "NOTFOUND" so you can tell if
the problem is in the matching or elsewhere.

With this configuration, testVar is not assigned.

But, if I modify the template parameter like this :
- template : $1$---
testVar is assigned with 'https---'

Rq : the same result occurs also with JMeter 2.1

I cannot explain this behaviour.

Nor can I.

Can you help me?

Are you absolutely sure that you are applying the RE to the same data?

Aurel'

--
View this message in context: 
http://www.nabble.com/Regular-expression-tf3632255.html#a10142129
Sent from the JMeter - User mailing list archive at Nabble.com.


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