Doh! Clicked send too soon...
I should add, you might be able to use a StringReader to read the string &
pass the StringReader to an XmlReader to parse it...
However! it would probably be easier to have the RegEx with a named group
that returns the "innerText".
Something like:
Dim s1 As String = " ... other html ... <title>SomeTitleHere</title> ...
other html ... "
Static exp As New Regex("<title>(?<innerHtml>.*?)</title>")
Dim match As Match = exp.Match(s1)
If match.Success Then
Debug.WriteLine(match.Groups("innerHtml"), "title's innerHtml")
End If
--
Hope this helps
Jay [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley -
http://www.tsbradley.net
"Ken Sturgeon" <ak********@charter.net> wrote in message
news:Oh**************@TK2MSFTNGP12.phx.gbl...
| Using VB.NET in VS2005, assume that you have a RegEx that matches a
specific
| html tag; for instance "<title>.*?</title>" that returns a match
| "<title>SomeTitleHere</title>" and you want to convert that string into an
| xmlNode so you can just grab the InnerHTML... how would you go about
| converting it to an xmlNode?
|
| My thanks to all respondents in advance for your help.
|
| Ken
|
|