开发者

regex for 3 numbers after string

开发者 https://www.devze.com 2023-04-12 02:36 出处:网络
I\'ve a problem, I have a link on each page of my website linking to a different contact form wh开发者_开发知识库ich does\'nt exist. for example, on one page it links to contact_123.html, another cont

I've a problem, I have a link on each page of my website linking to a different contact form wh开发者_开发知识库ich does'nt exist. for example, on one page it links to contact_123.html, another contact_122.html, another contact_124.html etc... I want to do a find and replace on this to change any contact_"any 3 numbers".html to just contact.html.

Does anyone know the regex to do this. Cheers!


Regex to search for: contact_\d{3}\.html

How to do actual search&replace depends what tool/environment you're using

0

精彩评论

暂无评论...
验证码 换一张
取 消