EditPlus in the use of a regular replacement string

Source: Internet
Author: User

Share some of your regular tips with EditPlus, editplus version v3.5.1

1, replace a label link address is empty

For example:

Put all the

1 <a href= ".??." >
Replace into

1 <a href= "#" >

Regular lookup:

1 <a href= "[^"]+ "

To be replaced by:

1 <a href= "#"

Replace result:

2, replace all two change the behavior of a line, remove empty line

Regular lookup:

1 nn



Replace one time break, can replace more

3. Replace title= "...? sui!!?quot; empty

Regular lookup:

1 title= "[^"]+ "

To be replaced by:

1 empty

By the same token, you can replace title= with alt=, style=, onclick=, etc.

3, find the removal of Baidu statistics code

1 <script type= "Text/javascript" >var _bdhmprotocol. Sui!?lt;/script>

Regular lookup:

1 (<script[^>]+>nvar _bdhmprotocol.+);ndocument.write.+n</script>) | (<script[^>]+>var _bdhmprotocol.+);ndocument.write.+n</script>) | (<script[^>]+>var _bdhmprotocol.+);d ocument.write.+</script>)

To be replaced by:

1 empty

4, remove the CNZZ Webmaster statistics code

1 <script src= "... Cnzz.com ... "Type=" Text/javascript "></script>

Regular lookup:

1 <script src= "[^"]+cnzz.com[^ "]+" type= "Text/javascript" ></script>


1 empty

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.