A
Anders Borum
Hello!
I'm starting to get into RegEx, but am troubled by creating a RegEx.
Basically, I would like to capture any content between (and including) the
first <div> and last </div> tag in a string. I've got the C# code up and
running but could need some help to get me started ..
string regEx = "^?(<div)";
Meaning:
^ (anchor to start of string)
? (zero or one time)
Capture
<div
End Capture
Or am I completely wrong here? I am trying to get into RegEx and am reading
up on the subject. It's a completely new way of thinking your logic, so
please help me out here
<html>
...
(START CAPTURE HERE)
<div>
<div>
</div>
</div>
(END CAPTURE HERE)
</html>
Thanks in advance!
I'm starting to get into RegEx, but am troubled by creating a RegEx.
Basically, I would like to capture any content between (and including) the
first <div> and last </div> tag in a string. I've got the C# code up and
running but could need some help to get me started ..
string regEx = "^?(<div)";
Meaning:
^ (anchor to start of string)
? (zero or one time)
Capture
<div
End Capture
Or am I completely wrong here? I am trying to get into RegEx and am reading
up on the subject. It's a completely new way of thinking your logic, so
please help me out here

<html>
...
(START CAPTURE HERE)
<div>
<div>
</div>
</div>
(END CAPTURE HERE)
</html>
Thanks in advance!