简体   繁体   English

正则表达式,用于查找带有不同html结尾的URL-notepad ++

[英]Regex for finding URL with different html ending - notepad++

Can someone help me what expression to use in regex notepad++, I am not a programmer and have tried and read many websites before asking, but still complicated for me. 有人可以帮我在正则表达式notepad ++中使用什么表达式,我不是程序员,在询问之前已经尝试阅读了许多网站,但对我来说仍然很复杂。

I need to find the following kind of links having the same beginning but a different ending: 我需要找到以下类型的链接,它们的开头相同但结尾不同:

http://www.domain.com/buy/best%20iphone%20leather%20case.html  
http://www.domain.com/buy/best%20ipad%20chargers.html  
etc..

Thanks 谢谢

You don't need regex for that. 您不需要正则表达式。

Find for domain and replace it with some other domain name. 查找domain并将其替换为其他域名。

1 - Hit CTRL + h 1-按CTRL + h
2 - Choose the tab replace 2-选择选项卡replace
3 - On the upper field: Type domain you want to replace (olddomain.com) 3-在上方字段中:输入要替换的域(olddomain.com)
4 - On the lower field: Type the new domain (newdomain.com) 4-在下部字段中:键入新域(newdomain.com)
5 - Hit enter . 5-按enter

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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