简体   繁体   中英

Notepad++ search and replace xml ids

Is there any way to search and replace a name="" attribute with unique names in notepad++? I simply want to remove the whole name="" attribute.

Is there any way in notepad++ to do this with a regex?

The name attribute looks like this:

name="myTag1"

Where 1 is a unique id.

Thanks!

Use the replace function with this regex

name="myTag[0-9]+"

Don't forget to check the regular expression checkbox in the replace function dialog.

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