Correlation - ***URGENT **** help required (218 Views)
Reply
Valued Contributor
Nan_Raso
Posts: 46
Registered: ‎04-15-2013
Message 1 of 4 (218 Views)
Accepted Solution

Correlation - ***URGENT **** help required

Hello all,

     I am trying to correlate the value "525E3648504C0C50E10080000A3EFDA0" from the below text,

OBJECT_GUID\x253d525E3648504C0C50E10080000A3EFDA0\x2526PORTFOLIO_GUID 
 
Try1:
web_reg_save_para("Test", "LB=OBJECT_GUID\x253d",RB=\x2526PORTFOLIO_GUID",LAST);
result :
No Match found.
 
Try2:
web_reg_save_para("Test", "LB=OBJECT_GUID",RB=PORTFOLIO_GUID ",LAST);
result:
\x253d525E3648504C0C50E10080000A3EFDA0\x2526
 
 
So, i feel the escape caharacter "\" is skipping the remaining boundaries, results in no match.
 
Is the a way to handle the escape character in correlation function.
Much appreciate your help!!!
Thanks,
Nan Raso
Respected Contributor
Srihari_Amgen
Posts: 426
Registered: ‎11-25-2011
Message 2 of 4 (209 Views)

Re: Correlation - ***URGENT **** help required

Hi Nan_Raso,

 

What if we keep another escape character \ before the existing blakslash in the right boundary?

 

In the recording options -> enable correlation for recording -> create a new rule -> keep the current left and right boundary's test them and see whether you are able to extract the required data from the response.

 

Regards,

Srihari

HP Expert
Editus
Posts: 650
Registered: ‎04-06-2011
Message 3 of 4 (205 Views)

Re: Correlation - ***URGENT **** help required

hi
yes, you need to duplicate the \ so vugen understand this is actually part of the boundary.

regards
Valued Contributor
Ajay_U
Posts: 108
Registered: ‎04-30-2012
Message 4 of 4 (181 Views)

Re: Correlation - ***URGENT **** help required

By adding escape sequences it should capture the value.

 

web_reg_save_para("Test", "LB=OBJECT_GUID\\x253d",RB=\\x2526PORTFOLIO_GUID",LAST);

 

Thanks, Ajay

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.