Regular Expressions remove teleport pro redundant code!

Source: Internet
Author: User

Download teleport pro

Teleport proCodeAdded. equivalent to a description. Prompt.

You can use regular expressions in Dreamweaver to clear such code in batches.

The statement is as follows:

Matching tppabs labels:
\ Btppabs = "H [^"] *"

Replace

(Null)

Match JavaScript code:
Href = "javascript: If \ (confirm \ ('htt [^"] *"

Replace

Href = "#"

Note that you should check "use regular expression" for replacement"

The CSS file contains code similar to/* TPA = http://image.39.net/cancer/images/focus_bmark_bg.gif #/

Use regular expressions.

/* \/\ * TPA = H [^ "] */This can be all removed! (But this method will delete the code by mistake! Try not to use)

TPA = http: // [^ \ s] *. gif

Replace

(Null)

TPA = http: // [^ \ s] *. jpg

Replace

(Null)

TPA = http: // [^ \ s] *. PNG

Replace

(Null)

Then the rest is/**/, which does not require regular replacement.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.