http://perldoc.perl.org/perlre.html#Extended-Patterns
Explains how (?s) etc are used in Perl (not pearl) On 09/05/2008, sebb <[EMAIL PROTECTED]> wrote: > Almost what you want: > > > http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Response_Assertion > > > > On 09/05/2008, Michael Giroux <[EMAIL PROTECTED]> wrote: > > Thanks Steve, but the pearl docs dont help either. > > > > JMeter uses pearl style paterns without the / delimiters, so it is not > > possible to specify > > > > /my pattern/s > > > > The JMeter docs say to use (?s) but do not show where it goes in the > > pattern. For pearl, the modifier goes at the end of the pattern, but > > JMeter does not use the / delimiters, so it is not obvious from the > > JMeter docs where the modifier goes. > > > > I have tried: > > first part.*(?s)second part > > first part(.*?s)second part > > first part(.?s)second part > > > > and a few others that I did not keep track of. These seem to parse, > > but the match fails. > > > > I tried > > first part.*second part(?s) > > > > and this fails with a parse exception for unmatched parens > > > > and > > first part.*second part(?s): > > seems to parse but does not match > > > > > > An example of a valid pattern that specifies single line mode would > > really be useful. > > > > > > Michael > > > > > > On Fri, May 9, 2008 at 8:05 AM, Steve Kapinos > > <[EMAIL PROTECTED]> wrote: > > > This might help... > > > > > > http://www.regular-expressions.info/dot.html > > > > > > Jmeter uses perl5 type regex I believe.. This guide talks about single > > > line mode and the differences in what matches what, etc. > > > > > > -Steve > > > > > > -----Original Message----- > > > From: Michael Giroux [mailto:[EMAIL PROTECTED] > > > Sent: Friday, May 09, 2008 8:51 AM > > > To: JMeter Users List > > > Subject: Re: How to specify single line qualifier (?s) with a response > > > assertion pattern? > > > > > > In fact, I posted my question *after* reading the user manual and trying > > > to put the specifier in my pattern without success. The document could > > > use an example. > > > > > > My pattern is > > > some text.*some more text > > > > > > This fails because .* does not match new lines. > > > > > > I tried > > > some text.*(?s)some more text > > > > > > This fails aparently because the single line specifier is in the wrong > > > place. > > > > > > Can you give an example of how to adjust my pattern to include this > > > specifier? > > > > > > THanks > > > Michael > > > > > > On Thu, May 8, 2008 at 3:31 PM, sebb <[EMAIL PROTECTED]> wrote: > > >> http://jakarta.apache.org/jmeter/usermanual/regular_expressions.html#l > > >> ine_mode > > >> > > >> On 08/05/2008, Michael Giroux <[EMAIL PROTECTED]> wrote: > > >>> my current pattern is "some text.*heading +value" (without the > > >>> quotes) > > >>> > > >>> I wish the .* to match new-lines, so I have to specify the single > > >>> line modifier, but I'm not able to figure out how to do that > > > exactly. > > >>> > > >>> Thanks > > >>> Michael Giroux > > >>> > > >>> > > >>> --------------------------------------------------------------------- > > >>> 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] > > > > > > > > > --------------------------------------------------------------------- > > > 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]