简体   繁体   中英

Notepad++ - how to find and replace using regex

I am trying to find and replace in notepad++. For example I want to replace

border-radius: 2px 3px 2px;

I am using this code to find:

border-radius: ([^A-Za-z]*);

But my expression only search for this types of code (which have only one radius value):

border-radius:2px;

Please tell me how to find:

border-radius: **** ;

If you want to find border-radius: followed by anything, just relax your constraint:

border-radius:(.*?);

The . means any character. The * means any number of them. But the ? limits that to minimum matches possible, meaning that it stops on the first ; (otherwise the pattern would match whole line, were there multiple rules on the line).

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