> AFAIK, \s matches new-line even without the (?s); however "." does > not match newline unless (?s) is used.
> AFAICS, the ? does not help after \s+ because \s+ cannot match > anything but white-space. > > However, it is usually essential after .+ or .* Oops --- you're right on both counts Sebb. I'd just done examples using ".+?" etc and 'mapped' that to this situation. Sincerely, Sonam Chauhan -- Corporate Express Australia Ltd. Phone: +61-2-9335-0725, Email: [EMAIL PROTECTED] -----Original Message----- From: sebb [mailto:[EMAIL PROTECTED] Sent: Wednesday, 21 June 2006 7:58 PM To: JMeter Users List Subject: Re: Regular Expression On 21/06/06, Sonam Chauhan <[EMAIL PROTECTED]> wrote: > Just some ideas... > > If there is a newline, perhaps he need to use the '(?s)' > "single-line-match" option in the regex. This makes the regex treat > newline characters as part of the same one line. > i.e.: > (?s)name="ResourceID"\s+value="(\d+) AFAIK, \s matches new-line even without the (?s); however "." does not match newline unless (?s) is used. See: http://jakarta.apache.org/jmeter/usermanual/regular_expressions.html though this does not mention \s matching. > Another thing he could do is to use '?' as a "minimal-match" qualifier > in '\s+?' to ensure the regex does not 'span' excessively. > (?s)name="ResourceID"\s+?value="(\d+) AFAICS, the ? does not help after \s+ because \s+ cannot match anything but white-space. However, it is usually essential after .+ or .* S. --------------------------------------------------------------------- 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]

