简体   繁体   中英

notepad++ regex search replace in html tag

What I want is to replace:

<meta name="description" content="some content here"> 

to

<meta name="description" content="">

I hope it isn't to hard for notepad++.

You can do something like this:

  1. replace content="[^"]*" with content=""

see screenshot 在此输入图像描述

Unless you specifically want the content attribute only from meta tags

在替换对话框中启用“正则表达式”并尝试搜索:

<meta name="description" content="[A-Za-z0-9].*">

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM