just tried this in a free minute and it works name="authPersonIdSeq" value="(\d+)"[^<]+?Kontoinhaber
thanks to sebb -----Ursprüngliche Nachricht----- Von: sebb [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 18. November 2005 17:28 An: JMeter Users List Betreff: Re: Strange behaviour of a regular expression On 18/11/05, Nop Lists <[EMAIL PROTECTED]> wrote: > Hello, > I have a slight problem extracting a value from a http-resplonse... > I need to extract the "value" field of one customer from a list of customers > having the attribute "Kontoinhaber". > A sample list (with white spaces eliminated) is posted below. > Now my regular expression is > > (?s)(name=\"authPersonIdSeq\" value=\"([0-9]+)\".+?Kontoinhaber) This means find name="authPersonIdSeq" value="\d+" where this is (eventually) followed by Kontoinhaber .+? is not greedy, but it will still keep going until it finds a match for Kontoinhaber. Try [^<]+? instead > I take template $2$ , match 1. > > Unfortunately I always get in my extractor the value of the first customer > which sometimes has the attribute "Bevollmächtigter" and not "Kontoinhaber". > Could anybody please advice what I am doing wrong? > Thanks! > > > > > <tr><td> > <input type="checkbox" name="authPersonIdSeq" value="5985094000100" > checked="checked"> > Andreas Miller; Bevollmächtigter<br> > </td></tr> > <tr> > <td><img src="img/trans.gif" width="1" height="4" border="0" alt=""></td> > </tr> > > <tr><td> > <input type="checkbox" name="authPersonIdSeq" value="0813421000100"> > Damian Bart; Bevollmächtigter<br> > </td></tr> > <tr> > <td><img src="img/trans.gif" width="1" height="4" border="0" alt=""></td> > </tr> > > <tr><td> > <input type="checkbox" name="authPersonIdSeq" value="8670010001000"> > Elias Anton; Kontoinhaber<br> > </td></tr> > <tr> > <td><img src="img/trans.gif" width="1" height="4" border="0" alt=""></td> > </tr> > > <tr><td> > <input type="checkbox" name="authPersonIdSeq" value="0799894000100"> > Benedikt Press; Bevollmächtigter<br> > </td></tr> > <tr> > <td><img src="img/trans.gif" width="1" height="4" border="0" alt=""></td> > </tr> > > <tr><td> > <input type="checkbox" name="authPersonIdSeq" value="6058654000100"> > Dr. Parsad Mau; Bevollmächtigter<br> > </td></tr> > <tr> > > --------------------------------------------------------------------- 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]

