I suppose an example of what I'm trying to do would be in order.  Running in
functional test mode, I get this as part of the response:

   search_key=sfhoklm0m2+%3A+1048604216296

which decoded looks like this:

   search_key=sfhoklm0m2 : 1048604216296

As part of the next request, I have a regexFunction that looks like this:

 
${__regexFunction(search_key%3D%28%5Cw%2B%20%3A%20%5Cd%2B%29,%241%24,1,,BAD_
MATCH,search_key)}

which decoded is:

   ${__regexFunction(search_key=(\w+ : \d+),$1$,1,,BAD_MATCH,search_key)}

I'm assuming it's a perl-like regex syntax (I think I read that somewhere,
but that's what the original question is about).  I keep getting BAD_MATCH
returned.

Should I be trying to match a '+' instead of the spaces surrounding the
colon, and a %3A instead of a colon?  If so, should the plus signs then be
encoded, and if so, will they then match?  If I have to match against
encoded response data, that seems like it will make constructing the regex's
themselves rather difficult (e.g. can't use \s+ real easily).

Thanks as always for the help!

--
Regards,


joe
Joe Casadonte
Global Logistics Technologies, Inc.
[EMAIL PROTECTED]

1016 West Ninth Avenue
King of Prussia, PA 19406
610-491-9881


> -----Original Message-----
> From: Casadonte, Joe [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 25, 2003 10:14 AM
> To: 'JMeter Users List'
> Subject: Syntax of regexFunction
> 
> 
> Is there any documentation of the acceptable regex syntax for 
> this function?
> There are so many flavors of regex out there.  Also, the 
> response data I am
> matching to, will it be encoded or not?  Thanks!
> 
> --
> Regards,
> 
> 
> joe
> Joe Casadonte
> Global Logistics Technologies, Inc.
> [EMAIL PROTECTED]
> 
> 1016 West Ninth Avenue
> King of Prussia, PA 19406
> 610-491-9881
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to