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]

Reply via email to