Regex help
- From: "Marius Trælnes" <marius.traelnesnospam@xxxxxxxxxxxxx>
- Date: Fri, 10 Jun 2005 15:54:29 +0200
Hello!
I have a file with following htmlt tags:
.....can be anything before....
<div id="SomeConfig">
some text, can be anything here, also any tag
</div>
.....can be anything after......
I want to "cut" out the div which has an id attribute with config in its's
value. In the above sample
this would be:
<div id="SomeConfig">
some text, can be anything here, also any tag
</div>
I try with this but it does not work:
Dim re As Regex = New Regex("(<div id=.*?config.*?div>)",
RegexOptions.IgnoreCase)
Dim m As Match = re.Match(Text)
Dim s As String = m.Value()
Any suggestions?
Marius
.
- Follow-Ups:
- Re: Regex help
- From: Michael Persaud
- Re: Regex help
- From: Rick Mogstad
- Re: Regex help
- Prev by Date: Re: Reflection
- Next by Date: Re: Thread and memory consumption
- Previous by thread: Resize a form and the control, when dragging the corner to a new location
- Next by thread: Re: Regex help
- Index(es):
Relevant Pages
|