Displaying page
of
pages;
Items to
Title |
Test
Details
HTML Tag Remover
|
Expression |
<\/?(tag1|tag2)[^>]*\/?>
|
Description |
This is expression is good if you need to clean up some code (like from using DW Design View or Front Page). Just the "tag1" and "tag2" with the tags you want, and you can add more by putting a | inbetween each tag.
|
Matches |
<tag1 name="input" id="input"> | <tag2> | <tag1 src="/home.jpg" /> | </tag1>
|
Non-Matches |
<tag1 | tag2>
|
Author |
Rating:
Not yet rated.
Kerry Jones
|
Title |
Test
Details
HTML Tag and InnerHTML Remover
|
Expression |
<(tag1|tag2)[^>]*\/?>.*<\/(?:\1)>
|
Description |
Removes all the text between two tags. Replace the "tag1" and "tag2" with the tag you want to remove, you can add more by placing additional "|" between each tag.
|
Matches |
<tag1>Welcome!</tag1> | <tag1>How <b>are</b> you?</tag1>
|
Non-Matches |
<tag1>How <b>are</b> you? | <tag1>How <b>are</b> you?</tag2>
|
Author |
Rating:
Not yet rated.
Kerry Jones
|
Title |
Test
Details
Find Relative Paths
|
Expression |
(src|href|action)="(?!http://|#|mailto:|&)([^/#"])
|
Description |
If when making a website you need to find your relative paths, this regex will find them. You can use the follow to make them absolute:
\1="/\2
|
Matches |
src="images" | href="index.html" | action="process.php"
|
Non-Matches |
src="/images" | href="/index.html" | action="/process.php" | href="http://www.google.com" | href="mailto: [email protected]" | href="#" | href="" | href="&name=test"
|
Author |
Rating:
Not yet rated.
Kerry Jones
|
Title |
Test
Details
Tag InnerHTML Remover
|
Expression |
(<(tag1|tag2)[^>]*\/?>)[\w\S\s]*?(<\/(?:\2)>)
|
Description |
This will remove the InnerHTML of a tag. For instance, if you wanted to clear all paragraphs and h1 tags on a page, you would simply put in "p" and "h1" into those tags, and they would end up looking like <h1></h1> <p></p> <p></p>. It's useful when you're doing work based off a template and you need to get back to the original template.
|
Matches |
<tag1>Lorem ipsum dolor sit amet</tag1>
|
Non-Matches |
<tag1>Lorem ipsum doler</othertag>
|
Author |
Rating:
Not yet rated.
Kerry Jones
|
Title |
Test
Details
Title Anchor Tags
|
Expression |
<a((?:(?! title=)[^">]*"[^">]*")+)>([^<]+)<\/a>
|
Description |
Use the above pattern with this replacement pattern: "<a\1 title="\2">\2</a>" and it will put title tags in all of your anchors that don't have a title tag.
|
Matches |
<a href="/">Home</a> | <a href="/" style="font-size: 30px">Home</a>
|
Non-Matches |
<a href="/"><span style="font-size: 30px">Home</span></a>
|
Author |
Rating:
Not yet rated.
Kerry Jones
|
Displaying page
of
pages;
Items to