On 29/03/2010, Evandro Grezeli <grezeli.evan...@gmail.com> wrote:
> If you only need the number sequence, try this:
>
>  for="RequestId(.*)"
>
>  it's not the best regex, but the easiest one to grab using the starving "*"

SInce you are only interested in the digits

 for="RequestId(\d+)"

would be likely quicker, as no backtracking is involved.

(.*) and (.+) are greedy, and will keep matching until it finds the
last possible match, so it can include intervening " characters. This
does not happen with (\d+) because that stops as soon as the " is
encountered.

Try to avoid using the greedy qualifiers * and + with the . match character.

>
>  On Mon, Mar 29, 2010 at 5:04 PM, Troy Bull <troy.b...@gmail.com> wrote:
>
>  > I need to pick off the number  (in this example) 22502002140 when
>  > request-form appears on the next line can any one give me some tips
>  > that may work for this?  Here is how it appears in the response
>  >
>  > <label  for="RequestId22505002140" >
>  >
>  >  perf-request-form-20100326-121015-634052024628448736
>  >                          </label>
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
>  > For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
>  >
>  >
>
>
>
> --
>  Atenciosamente
>  Regards
>  Evandro Grezeli de B. Neves
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org
For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org

Reply via email to