Seb, Thanks for your answer, but it doesn't solve completely my problem : To find the right <option value=1> on my page, I must indicate the part of the html code containing the name of the select : thus, my regular expression should be on two lines (see html code from my first e-mail)
I saw aditionnal information on the page http://jakarta.apache.org/jmeter/usermanual/regular_expressions.html, but (as I'm not good in english language) i don't understand how to proceed for multiline string ... Thanks again. -----Message d'origine----- De : sebb [mailto:[EMAIL PROTECTED] Envoyé : jeudi 12 octobre 2006 12:16 À : JMeter Users List Objet : Re: Problem with regular expression for extractor Use the RE Post-Processor http://jakarta.apache.org/jmeter/usermanual/component_reference.html with an RE of the form: <option value="1">(\d+)\s+ |(\d+)\s+|(\S+)\s+|(.+?)|(.+?)</option> The values will then be in the variables: refname_g1 = id ... refname_g5 = status On 12/10/06, Bruno Charloup <[EMAIL PROTECTED]> wrote: > Hi all, > I'm trying to extract information from part of one page, but I can't > succeed in it. > > The part of the my page is as follow : > <select class="cell_ListboxNormal" style="width:680px" size="12" > name="lstBox" id="lstBox" onchange="" > > <option value="1">1 |1 |01/04/1995 |1995 Patent Act. > |Applicable</option> > <option value="2">9 |2 |14/10/2006 |Essai test automatique > |Not Used Yet</option> > </select> > > I want to extract each values contained in the first option in my > select "cell_ListBoxNormal", in other word, I need to store, for > example > 1 in ${id}, > 1 in ${pos}, > 01/04/1995 in ${date}, > 1995 Patent Act. in ${description} and Applicable in ${status} > > The string to be considered is a multiline string (from <select ...> > to the first </option>) Information are separated by a non fixed > number of space and a |. > > > Thanks in advance for any advice, ideas ... > > > > -- > Bruno CHARLOUP, > > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]