by
97 9

Life-saver regex to remove desired html tags completely with their contents

Remove html tags with their contents, useful when you want to remove certain frequently occurring tags from page, for designer to set design with css. (eg. label tag)
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/579509/Life-saver-regex-to-remove-desired-html-?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
Find: <label.*?>(.|\s)*?</label> Replace with: ''(nothing :) not even quotes) Dare to try below example with my devilish remover;) <label class="email" for="email"> <span>New Email</span> <p>New email 2</p> NEW EMAIL3 </label>
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus