Works great. Thanks! -----Original Message----- From: sebb [mailto:[EMAIL PROTECTED] Sent: Thursday, November 15, 2007 2:04 PM To: JMeter Users List Subject: Re: Regular expressions with embedded newlines and tabs
On 15/11/2007, Mark McWhinney <[EMAIL PROTECTED]> wrote: > I am trying to set up a regular expression extractor with a regular > expression that contains a newline (CR-LF) and a tab character. How do I do > that. \n is not the same as CR-LF. > This is the HTML > > <td nowrap class="StockItem">MarketCap</td> > <td nowrap class="StockItem" align=right>$3,518.21M</td> > > > I tried the following with \n\t and variations on it, but nothing worked. > > MarketCap</td>\n\t<td nowrap class="StockItem" align=right>([0-9,$.M]*)</td> > Probably best to use single line mode: (?s) See 20.3 line mode in http://jakarta.apache.org/jmeter/usermanual/regular_expressions.html e.g. (?s)MarketCap</td>.+?<td nowrap class="StockItem" align=right>([0-9,$.M]*)</td> Use the ORO demo page for testing REs > > > > > --------------------------------------------------------------------- > 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]