I'm trying to replace everything between 2 tags, but I'm not able to build the right expression.
This is what I did: /<tag>(.*|\n*)</tag>/
I want it to capture any characters including line breaks.
This is an example of what I need to capture:
<tag>
<div class="feed_title">Some Title</div>
<div class="feed_content">Some text</div>
</tag>
Can some of you tell me what I'm doing wrong?
Here is a link to RegExr and a full example of what the content looks like: http://regexr.com?2t4n1