How to add backslash (\) before quotes

158 views
Skip to first unread message

Sirajuddin Mohammed

unread,
Dec 6, 2017, 10:01:14 AM12/6/17
to LoadRunner
Hey Guys,

I'm capturing a value using correlation (for example value= 15499/09DEC","30 HRS 0044/12DEC ) and i want use this captured value in subsequent json request body, but before that i need to add escape (\) before quote in captured value.

Can anyone suggest how to add escape(\) before quote? or any code to do this?



Thanks in Advance!

Mital Majmundar

unread,
Dec 11, 2017, 12:31:02 PM12/11/17
to LR-Loa...@googlegroups.com
Best option here would be to use the web_reg_save_param_regex function and divide the value into 2 parts before and after the quote and then pass 2 values to the subsequent json with \" added in between.


 
Mital Majmundar

--
You received this message because you are subscribed to the Google Groups "LoadRunner" group.
To unsubscribe from this group and stop receiving emails from it, send an email to LR-LoadRunner+unsubscribe@googlegroups.com.
To post to this group, send email to LR-Loa...@googlegroups.com.
Visit this group at https://groups.google.com/group/LR-LoadRunner.
To view this discussion on the web visit https://groups.google.com/d/msgid/LR-LoadRunner/0c778f3a-7ab4-43a1-9848-918e9405f090%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Abhishek Banginwar

unread,
Dec 11, 2017, 12:31:03 PM12/11/17
to LR-Loa...@googlegroups.com

Write code to insert or Google for find and replace code online.


--
You received this message because you are subscribed to the Google Groups "LoadRunner" group.
To unsubscribe from this group and stop receiving emails from it, send an email to LR-LoadRunne...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages