Re: extract text from html
- From: "m.posseth" <michelp@xxxxxxxxxxxxxxx>
- Date: Wed, 14 Dec 2005 08:43:01 +0100
Patrick ,
if you mean your Goal is just simply removing the HTML tags from a string
i made a function for this purpose with some Regex
Private Function stripHTML(ByVal strHTML) As String
Dim objRegExp As New System.Text.RegularExpressions.Regex("<(.|\n)+?>")
Return objRegExp.Replace(strHTML, "")
End Function
i use this in a winforms app that stripes websites for valuable information
with a webclient
hth
Michel Posseth [MCP]
"Patrick" <praft@xxxxxxxxx> wrote in message
news:%23UkeVbv$FHA.1600@xxxxxxxxxxxxxxxxxxxxxxx
> I've got some text with a few HTML tags, such as the following
> <Bold>Hello</Bold>There buddy<p>please .....
>
> I need to be able to extract just the text, which would be
> Hello there buddy please....
>
> Note, this is a Windows App, and not a Web App.
> Any ideas anyone?
>
.
- Follow-Ups:
- Re: extract text from html
- From: Roger
- Re: extract text from html
- References:
- extract text from html
- From: Patrick
- extract text from html
- Prev by Date: Re: Batch commands & Ms-Access
- Next by Date: Re: Deploying .Net Web Service
- Previous by thread: Re: extract text from html
- Next by thread: Re: extract text from html
- Index(es):
Relevant Pages
|