Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of deleting a large number of tags after searching for tags in vscode

2025-03-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method of deleting a large number of tags after vscode search, which is very detailed and has a certain reference value. Friends who are interested must read it!

Vscode can use regular expressions to match tags and delete a large number of them.

Example:

Clear the tppabs tag:

In the html file:

Find:\ btppabs= "h [^"] * "

Replace: (empty)

Use regular matching to delete a large number of content in vscode:

Links to pictures in css files (take gif images as an example):

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

Replace: (empty)

Comments in the css file:

Find: / * tpa.*?*/

Replace: (empty)

Fix the confirm link:

Find: href= "_ javascript:if (confirm ('(htt [^"\ s]). *? "

Replace: href= "$1"

The above is all the content of this article "how to delete a large number of tags after vscode search". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 219

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report