For example, in the bottom html, find tags divwith classequal bar, as well as parent divequal foo.
<div class="bar">
Hello World!
</div>
<div class="foo">
<div class="bar">
Hello World Again!
</div>
</div>
Here is the resharper search pattern I am using and it does not give any results:
<div class="foo"><div class="bar">$content$</div></div>
The replacement sample should add an additional nested div with the baz class:
<div class="foo"><div class="bar"><div class="baz">$content$</div></div></div>
source
share