The problem i have that both layouts could be in the same responce so I
can´t write as value : ${result1}${result2}
I have allways to use result2, but when result2 is null i have to use
result1.
Can I write this into the value?

-----Ursprüngliche Nachricht-----
Von: Gareth Western [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 3. März 2006 13:34
An: JMeter Users List
Betreff: Re: Regular expression


I had this same question a couple of weeks ago. The best way is to just 
use TWO regular expressions (one for each case), store the results in 
two variables (e.g. result1 and result2) then concatenate the two into 
one (e.g result). I came close to getting a single regular expresssion 
to do it all in one, but never got it quite right.

[EMAIL PROTECTED] wrote:
> Hi,
>  
> I tried to catch a struts-token from the responce data but I can´t 
> find the right expression.
>  
> There are two possible layouts:
>  
> 1. 
> org.apache.struts.taglib.html.TOKEN=8e2a7662a96db8af07ec5f73482d8e00
> 2. name="org.apache.struts.taglib.html.TOKEN"
> value="82cdbbcaf1ca130f966624702f348d4e"
>  
>  
> Does anybody know a regular expression to catch the token.
>  
> Regards Torste
>
>   


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


******************************************************************
Bitte nutzen Sie die E-Mail-Verbindung mit uns ausschliesslich zum 
Informationsaustausch. Wir koennen auf diesem Wege keine 
rechtsgeschaeftlichen Erklaerungen (Auftraege etc.) entgegennehmen.
Der Inhalt dieser Nachricht ist vertraulich und nur fuer den angegebenen 
Empfaenger bestimmt. Jede Form der Kenntnisnahme oder Weitergabe
durch Dritte ist unzulaessig. Sollte diese Nachricht nicht fur Sie bestimmt
sein, so bitten wir Sie, sich mit uns per E-Mail oder telefonisch in 
Verbindung zu setzen.

Please use your E-mail connection with us exclusively for the exchange 
of information. We do not accept legally binding declarations (orders, 
etc.) by this means of communication. The contents of this message is 
confidential and intended only for the recipient indicated. Taking 
notice of this message or disclosure by third parties is not 
permitted. In the event that this message is not intended for you, 
please contact us via E-mail or phone.

******************************************************************


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

Reply via email to