简体   繁体   中英

Notepad++ regular expression <li>

I have this line

"top/wedding", <li>Wedding 1924</li>

How I can replace what is inside the <li> by using a regular expression?

find what: <li>.*</li>

Replace with <li>foo</li>

search mode (*) regular expression

替换对话框窗口

You can use the following regex in Notepad++.

Make sure "Regular expression" along with . matches newline is checked.

Find: <li>\K.*?(?=</li>)
Replace: something

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