This is a migrated thread and some comments may be shown as answers.

Is there a good HTML parser for Fiddler?

3 Answers 122 Views
Extensions and Customization
This is a migrated thread and some comments may be shown as answers.
nasekt
Top achievements
Rank 1
nasekt asked on 26 Oct 2014, 03:16 PM
<div class=.....SomeText.....</div><div class=.....SomeText_1.....</div>

I want to  match only <div class=.....SomeText_1.....</div>

I tried this <div\sclass=.*?SomeText_1.*?</div>, but it matches from the start.

Any ideas?Is there a good HTML parser for Fiddler?

Thank you

3 Answers, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 27 Oct 2014, 03:47 PM
As with many of your questions, this question isn't in any way Fiddler-specific. There are many libraries in .NET that allow you to parse HTML, including some that are a part of the .NET Framework as well as many 3rd party HTML parsers.  https://www.google.com/?gws_rd=ssl#q=.NET+Parse+HTML

(Your regular expression matches more than you want because you use .* which will include the > character that ended the prior tag. You need to use something like [^>]* instead.)

Regards,
Eric Lawrence
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
ikas
Top achievements
Rank 1
answered on 12 Feb 2015, 09:56 PM
You could try HtmlAgilityPack.

My post on how I used it with fiddler.
0
Rene
Top achievements
Rank 1
answered on 07 Jan 2016, 12:54 AM
Could be useful this tool for fiddler http://microtesttools.blogspot.ie/2016/01/comparing-request-and-responses-from.html?m=1
Tags
Extensions and Customization
Asked by
nasekt
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
ikas
Top achievements
Rank 1
Rene
Top achievements
Rank 1
Share this question
or