Regular Expressions 101

Sponsors

Library entries

C# Regex Extract/Match Nested HTML Elements/Tags

Vote

3

Regular Expression
dotnet

"
<div id=\"target\"((?'nested'<div)|</div(?'-nested')|[\w\W]*?)*</div>
"
gm

Description

Loading markdown...
Submitted by w4po - 9 months ago