So, (https*):\/\/([^"]) would pick up the protocall and the domain and path
and the : doesn't need to be escaped because it is not a special character?


sebb-2-2 wrote:
> 
> On 14/12/2007, MrMax <[EMAIL PROTECTED]> wrote:
>>
>> I have used ([htps]+)\:\/\/[^"]+ successfully, provided you have a quote
>> at
> 
> This will also match:
> 
> pssst://
> 
> ;-)
> 
>> the end of the url
>> I needed to escape the colon and the slashes.
> 
> That should not be necessary, as they are not special characters.
> 
>> Cheers,
>>
>> Max
>>
>>
>> aurel' 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 : (.*)://.*
>> > - template : $1$
>> > - num : 1
>> > 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.
>> > Can you help me?
>> >
>> > Aurel'
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Regular-expression-tp10142129p14339726.html
>> 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]
> 
> 
> 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to