Highlighted
Absent Member.
Absent Member.
15802 views

How to use include escape character '\' in LB and RB in web_reg_save_param

Jump to solution

Hi,

 

I want to capture Flight ID. The response generated contains '\' in it, below is a sample response:-

 

{"d":["{\"First\":\"Flight Name\",\"Second\":\"Flight ID;Destination;Destination ID;xxx;yyy\"}"]}

 

 How to include '\' in web_reg_save_param?

Tags (1)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: How to use include escape character '\' in LB and RB in web_reg_save_param

Jump to solution

The escape character is '\'. So therefore to escape a backslash just put '\\'

View solution in original post

4 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: How to use include escape character '\' in LB and RB in web_reg_save_param

Jump to solution

The escape character is '\'. So therefore to escape a backslash just put '\\'

View solution in original post

Highlighted
Absent Member.
Absent Member.

Re: How to use include escape character '\' in LB and RB in web_reg_save_param

Jump to solution

Thank you, your solution is working LoadRunner421. Thanks a lot.

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: How to use include escape character '\' in LB and RB in web_reg_save_param

Jump to solution

I am getting data from server  {"item":"1986","success":true} i need to capture 1986 so how do i use " in the LB ( left boundary).

Please let me know

Thanks

vpsplits@yahoo.com

0 Likes
Highlighted
Regular Contributor.
Regular Contributor.

Re: How to use include escape character '\' in LB and RB in web_reg_save_param

Jump to solution

{"item":"1986","success":true}

web_reg_save_param

("paramname",

"LB = item\":\"",

"RB = ,",

LAST

);

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.