How to Find String Value using Regex

1 Answer 23 Views
FiddlerCore
Ryan
Top achievements
Rank 1
Ryan asked on 06 Feb 2024, 01:01 AM

So; in one of my applications; I am attempting to try to find text within a decoded response. The problem is, that response changes every day. However, the format as you see below always stays the same BEFORE the numbers that are underlined. Only the numbers change. The end goal is to find this response; and then print it to a textbox. How can I accomplish this?

 

 

 

1 Answer, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 06 Feb 2024, 09:35 AM

Hey Ryan,

 

You can utilize the function "utilFindInResponse" to search for a specific key name (such as "skirmish_end_time") in the response. Once you have identified the key and its corresponding value, you can use your own logic to save the value externally (for example, in a file) and use it wherever required. However, it is not entirely clear what you mean by "print it textbox". Could you please clarify if you are referring to a textbox in a third-party application outside of Fiddler or if you are trying to modify the response to display something different on a website instead of the original value? In the second case, you can use a custom regex to entirely replace the received numeric value (with your own value) and only then proceed with sending the response.

Use the following threads and documentation sources as references:

https://www.telerik.com/forums/findinresponse-to-give-next-string-element 

https://docs.telerik.com/fiddlercore/api/fiddler.session 

https://www.telerik.com/forums/fiddler-script-save-response-body-to-same-file 

 

Regards,
Nick Iliev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Ryan
Top achievements
Rank 1
commented on 06 Feb 2024, 01:11 PM

Good morning / evening; Simply I am wanting to display the valve found in the "utilFindInResponse" to show in a textbox.

Tags
FiddlerCore
Asked by
Ryan
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Share this question
or