Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6048311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:26:56+00:00 2026-05-23T07:26:56+00:00

I am parsing an html page using the Html Agility Pack . I am

  • 0

I am parsing an html page using the Html Agility Pack. I am successful in getting the following text in a string:

 
WOCN11 CWTO 170951

Special weather statement

Updated by Environment Canada

At 5:51 AM EDT Friday 17 June 2011.



Special weather statement issued for..

Sarnia - Lambton

London - Middlesex

Oxford - Brant

Waterloo - Wellington.

---------------------------------------------------------------------

Dense fog patches with near zero visibility have been reported in

The above areas. Extra caution is urged for travellers in these 

areas.



Fog is expected to lift shortly after sunrise this morning.



END/OSPC

ACCN10 CWTO 170735

Forecast of thunderstorm potential for the province of Ontario

Issued by Environment Canada at 3:35 AM EDT Friday 17 June 2011.

The next statement will be issued at 4.30 PM today.

---------------------------------------------------------------------

Forecast of thunderstorm potential.



Today..Isolated non severe thunderstorms over eastern

And Northeastern Ontario.



Tonight..Isolated non severe thunderstorms over eastern and 

Northeastern Ontario this evening.



Saturday..Isolated non severe thunderstorms over extreme

Southwestern Ontario mainly late in the afternoon and evening.



---------------------------------------------------------------------

A thunderstorm is defined as severe if it produces one or more of the 

following:



 - wind gusts of 90 km/h or greater.

 - hail of 2 centimetres in diameter or greater.

 - rainfall amounts of 50 millimetres or greater in one hour or less.

 - a tornado.



Note: this forecast is issued twice daily from May 1 to September 30.



END/OSPC

And I want to extract only the following part:


Forecast of thunderstorm potential.



Today..Isolated non severe thunderstorms over eastern

And Northeastern Ontario.



Tonight..Isolated non severe thunderstorms over eastern and 

Northeastern Ontario this evening.



Saturday..Isolated non severe thunderstorms over extreme

Southwestern Ontario mainly late in the afternoon and evening.



I am using Csharp on .Net 3.5. Any help appreciated.

Question Updated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:26:56+00:00Added an answer on May 23, 2026 at 7:26 am

    One way you could do it (although not 100% ideal), is like this:

    string[] textSplit = theWholeTextString.Split(new string[] { "---------------------------------------------------------------------" }, StringSplitOptions.None);
    string myText = textSplit[2];
    

    Assuming of course, that the text you want is always in the 3rd section, and each section is always separated by the ‘——‘ line

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using HtmlAgility pack for parsing the html page. I am able to
I am parsing a web page with the HTML agility pack in vb.net and
I am parsing html tabular information with the help of the html agility pack
i am parsing an html page using XmlSlurper and HtmlCleaner, i have the GPathResult
Got this error when parsing my html page using XPATH.. i am also using
I'm currently using the HTML Agility Pack in C# for a web crawler. I've
I'm trying to get google search results using HTML Agility Pack, but I am
I'm interested in selectively parsing Mediawiki XML markup to generate a customized HTML page
I am making an add-on for firefox and it loads a html page using
I'm new to using the Perl treebuilder module for HTML parsing and can't figure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.